Kepp all keys in lib/layouttranslations to ease translation work

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38163 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-03-30 17:39:38 +00:00
parent f6f32ca0ee
commit cc06353ebc
2 changed files with 446 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@ -325,11 +325,11 @@ def layouts_l10n(input_files, output, base, layouttranslations):
key = key.replace('\\', '\\\\').replace('"', '\\"')
print >> out, '\t"%s" "%s"' % \
(key.encode('utf-8'), val.encode('utf-8'))
# to print untranslated entries, uncomment the following lines
#else:
# key = key.replace('\\', '\\\\').replace('"', '\\"')
# print >> out, '\t"%s" "%s"' % \
# (key.encode('utf-8'), key.encode('utf-8'))
# also print untranslated entries to help translators
elif not lang in oldlanguages:
key = key.replace('\\', '\\\\').replace('"', '\\"')
print >> out, '\t"%s" "%s"' % \
(key.encode('utf-8'), key.encode('utf-8'))
print >> out, 'End'
out.close()