From: Kornel Benko Date: Fri, 5 Feb 2010 14:49:58 +0000 (+0000) Subject: Extracting also strings containing dash from languages-file X-Git-Tag: 2.0.0~4141 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0f3c445dd4117e4f0dcc4d5b80daae9f7684f41f;p=lyx.git 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 --- 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] == '#':