mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +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()):
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user