X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Flyx_pot.py;h=b559aec97e25e8cc0b8e6d89d4da016165d84c5b;hb=5142d1c86ada8df7451534402e2a1716678ee8b7;hp=842040776d1a47792c2b515ef9b0f81cff4dcef8;hpb=808ff6650c731d20005ace719287841366dfb504;p=lyx.git diff --git a/po/lyx_pot.py b/po/lyx_pot.py index 842040776d..b559aec97e 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -84,7 +84,8 @@ def layouts_l10n(input_files, output, base): ListName = re.compile(r'\s*ListName\s+(.*)') CategoryName = re.compile(r'\s*Category\s+(.*)') NameRE = re.compile(r'DeclareLyXModule.*{(.*)}') - InsetLayout = re.compile(r'^InsetLayout\s+(.*)') + InsetLayout = re.compile(r'^InsetLayout\s+\"?(.*)\"?') + FlexCheck = re.compile(r'^Flex:(.*)') DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$') DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$') Category = re.compile(r'#Category: (.*)$') @@ -172,6 +173,9 @@ def layouts_l10n(input_files, output, base): string = res.group(1) string = string.replace('_', ' ') writeString(out, src, base, lineno, string) + m = FlexCheck.search(string) + if m: + writeString(out, src, base, lineno, m.group(1)) continue res = Category.search(line) if res != None: