From 30fe0f9a2a54453902e7cc6f1b6d88ca11d7d828 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 5 Feb 2010 14:46:51 +0000 Subject: [PATCH] Extracting also strings containig dash from languages-file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33333 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/lyx_pot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/lyx_pot.py b/po/lyx_pot.py index 2b71161700..2678fd46df 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -183,7 +183,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] == '#':