From 0f3c445dd4117e4f0dcc4d5b80daae9f7684f41f Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 5 Feb 2010 14:49:58 +0000 Subject: [PATCH] Extracting also strings containing dash from languages-file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33334 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 af92a6886d..0ac580ad17 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -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] == '#': -- 2.39.2