]> git.lyx.org Git - lyx.git/blobdiff - po/lyx_pot.py
Reverting to previous behaviour (c-S-f shows advanced search dialog). It is more...
[lyx.git] / po / lyx_pot.py
index 0179560c7762519b8b84df80bbf1ef8204d42766..8f36405daadc8bee1bb6fb550235f6296888cce9 100755 (executable)
@@ -84,6 +84,7 @@ def layouts_l10n(input_files, output, base):
     InsetLayout = re.compile(r'^InsetLayout\s+(.*)')
     DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
     DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
+    Category = re.compile(r'#Category: (.*)$')
     I18nPreamble = re.compile(r'\s*(Lang)|(Babel)Preamble\s*$')
     EndI18nPreamble = re.compile(r'\s*End(Lang)|(Babel)Preamble\s*$')
     I18nString = re.compile(r'_\(([^\)]+)\)')
@@ -164,6 +165,11 @@ def layouts_l10n(input_files, output, base):
                 string = string.replace('_', ' ')
                 writeString(out, src, base, lineno, string)
                 continue
+            res = Category.search(line)
+            if res != None:
+                string = res.group(1)
+                writeString(out, src, base, lineno, string)
+                continue
     out.close()