]> git.lyx.org Git - features.git/commitdiff
small preparation for the layout translation fix
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 21 Mar 2011 19:11:53 +0000 (19:11 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 21 Mar 2011 19:11:53 +0000 (19:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37985 a592a061-630c-0410-9148-cb99ea01b6c8

po/lyx_pot.py

index 88d35a9921c381ea694dd9d2364bc9623e60fede..a6637a5617b2a6c72451c88e386059aa8cfd3d96 100755 (executable)
@@ -96,7 +96,7 @@ def layouts_l10n(input_files, output, base):
     CiteFormat = re.compile(r'\s*CiteFormat')
     KeyVal = re.compile(r'^\s*_\w+\s+(.*)$')
     End = re.compile(r'\s*End')
-    
+
     for src in input_files:
         readingDescription = False
         readingI18nPreamble = False
@@ -137,10 +137,7 @@ def layouts_l10n(input_files, output, base):
             res = NameRE.search(line)
             if res != None:
                 string = res.group(1)
-                string = string.replace('\\', '\\\\').replace('"', '')
-                if string != "":
-                    print >> out, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
-                        (relativePath(src, base), lineno + 1, string)
+                writeString(out, src, base, lineno + 1, string)
                 continue
             res = Style.search(line)
             if res != None: