]> git.lyx.org Git - features.git/commitdiff
* po/lyx_pot.py:
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 11 Apr 2008 10:39:00 +0000 (10:39 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 11 Apr 2008 10:39:00 +0000 (10:39 +0000)
- flag Category names for translation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24231 a592a061-630c-0410-9148-cb99ea01b6c8

po/lyx_pot.py

index 70e8299023fca90a72b392cf6b7b75d8465432c6..b2dcf67d62ae0f29eb061bbfad10076e3c78aa68 100755 (executable)
@@ -79,6 +79,7 @@ def layouts_l10n(input_files, output, base):
     LabelString = re.compile(r'^[^#]*LabelString\S*\s+(.*)')
     GuiName = re.compile(r'\s*GuiName\s+(.*)')
     ListName = re.compile(r'\s*ListName\s+(.*)')
+    CategoryName = re.compile(r'\s*Category\s+(.*)')
     NameRE = re.compile(r'DeclareLyXModule.*{(.*)}')
     DescBegin = re.compile(r'#+\s*DescriptionBegin\s*$')
     DescEnd = re.compile(r'#+\s*DescriptionEnd\s*$')
@@ -125,6 +126,11 @@ def layouts_l10n(input_files, output, base):
                 writeString(out, src, base, lineno, string)
                 continue
             res = GuiName.search(line)
+            if res != None:
+                string = res.group(1)
+                writeString(out, src, base, lineno, string)
+                continue
+            res = CategoryName.search(line)
             if res != None:
                 string = res.group(1)
                 writeString(out, src, base, lineno, string)