From: Bo Peng Date: Sun, 13 May 2007 19:38:12 +0000 (+0000) Subject: po/lyx_po.py: fix handling of certain langauges lines X-Git-Tag: 1.6.10~9798 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d544eef7c3f858ba4705a1d4c441d4f1c0bd67a3;p=features.git po/lyx_po.py: fix handling of certain langauges lines git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18291 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/po/lyx_pot.py b/po/lyx_pot.py index 23094aed7d..ce7b68a358 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -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()