X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Flyx_pot.py;h=665fdcddcfe35d6fd3806aafa5488f72e3b56294;hb=19a5965153825e54776ae1669f6ef58d7cdbc2a8;hp=71bd4c7e6ac1b81bd864aa789a8c27242574236f;hpb=683b3a05e2901f2e036bf1b2c873347fa0eb0434;p=lyx.git diff --git a/po/lyx_pot.py b/po/lyx_pot.py index 71bd4c7e6a..665fdcddcf 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -107,7 +107,7 @@ def layouts_l10n(input_files, output, base, layouttranslations): CounterFormat = re.compile(r'^\s*PrettyFormat\s+"?(.*)"?\s*$', re.IGNORECASE) CiteFormat = re.compile(r'^\s*CiteFormat', re.IGNORECASE) # Note: preceding and trailing space in the val below matters - KeyVal = re.compile(r'^\s*_\w+\s(.*\S)*$') + KeyVal = re.compile(r'^\s*B?_\w+\s(.*\S)*$') Float = re.compile(r'^\s*Float\s*$', re.IGNORECASE) UsesFloatPkg = re.compile(r'^\s*UsesFloatPkg\s+(.*\S)\s*$', re.IGNORECASE) IsPredefined = re.compile(r'^\s*IsPredefined\s+(.*\S)\s*$', re.IGNORECASE) @@ -445,8 +445,8 @@ def layouts_l10n(input_files, output, base, layouttranslations): out.close() -def qt4_l10n(input_files, output, base): - '''Generate pot file from src/frontends/qt4/ui/*.ui''' +def qt_l10n(input_files, output, base): + '''Generate pot file from src/frontends/qt/ui/*.ui''' output = io.open(output, 'w', encoding='utf_8', newline='\n') pat = re.compile(r'\s*(.*)') prop = re.compile(r'\s*