]> git.lyx.org Git - features.git/commitdiff
po/lyx_po.py: fix handling of certain langauges lines
authorBo Peng <bpeng@lyx.org>
Sun, 13 May 2007 19:38:12 +0000 (19:38 +0000)
committerBo Peng <bpeng@lyx.org>
Sun, 13 May 2007 19:38:12 +0000 (19:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18291 a592a061-630c-0410-9148-cb99ea01b6c8

po/lyx_pot.py

index 23094aed7da4515159c2e9b7e93d24448c1edede..ce7b68a35812f72214c3f501a5c2ff7c2d7bd4af 100755 (executable)
@@ -124,7 +124,7 @@ def languages_l10n(input_files, output, base):
     for lineno, line in enumerate(input.readlines()):
         if line[0] == '#':
             continue
-        items = line.split('"')
+        items = line.split()
         # empty lines?
         if len(items) < 3:
             continue
@@ -135,7 +135,7 @@ def languages_l10n(input_files, output, base):
         #   msgid "Afrikaans"
         #   msgstr ""
         # I do not care extra "s like "af_ZA"
-        print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % (relativePath(input_files[0], base), lineno+1, items[1])
+        print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % (relativePath(input_files[0], base), lineno+1, items[2].strip('"'))
     input.close()
     output.close()