* lyx_pot.py:

- allow comma in language name (bug 5459).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27300 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-11-05 23:44:40 +00:00
parent 834f0c9c4a
commit 0e1f67f8ea

View File

@ -180,7 +180,7 @@ def languages_l10n(input_files, output, base):
'''Generate pot file from lib/language'''
output = open(output, 'w')
# assuming only one language file
reg = re.compile('[\w-]+\s+[\w"]+\s+"([\w \-\(\)]+)"\s+(true|false)\s+[\w-]+\s+\w+\s+"[^"]*"')
reg = re.compile('[\w-]+\s+[\w"]+\s+"([\w \-\(\),]+)"\s+(true|false)\s+[\w-]+\s+\w+\s+"[^"]*"')
input = open(input_files[0])
for lineno, line in enumerate(input.readlines()):
if line[0] == '#':