]> git.lyx.org Git - lyx.git/commitdiff
Extracting also strings containing dash from languages-file
authorKornel Benko <kornel@lyx.org>
Fri, 5 Feb 2010 14:49:58 +0000 (14:49 +0000)
committerKornel Benko <kornel@lyx.org>
Fri, 5 Feb 2010 14:49:58 +0000 (14:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33334 a592a061-630c-0410-9148-cb99ea01b6c8

po/lyx_pot.py

index af92a6886d0bfff77260405208707a33340a33ec..0ac580ad17c88c104ee9211ad2d01dfd6e27f493 100755 (executable)
@@ -213,7 +213,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] == '#':