mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
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
This commit is contained in:
parent
fdaf886bbc
commit
d544eef7c3
@ -124,7 +124,7 @@ def languages_l10n(input_files, output, base):
|
|||||||
for lineno, line in enumerate(input.readlines()):
|
for lineno, line in enumerate(input.readlines()):
|
||||||
if line[0] == '#':
|
if line[0] == '#':
|
||||||
continue
|
continue
|
||||||
items = line.split('"')
|
items = line.split()
|
||||||
# empty lines?
|
# empty lines?
|
||||||
if len(items) < 3:
|
if len(items) < 3:
|
||||||
continue
|
continue
|
||||||
@ -135,7 +135,7 @@ def languages_l10n(input_files, output, base):
|
|||||||
# msgid "Afrikaans"
|
# msgid "Afrikaans"
|
||||||
# msgstr ""
|
# msgstr ""
|
||||||
# I do not care extra "s like "af_ZA"
|
# 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()
|
input.close()
|
||||||
output.close()
|
output.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user