]> git.lyx.org Git - features.git/commitdiff
handle TableInsert in lyx_pot.py
authorBo Peng <bpeng@lyx.org>
Thu, 31 May 2007 14:56:07 +0000 (14:56 +0000)
committerBo Peng <bpeng@lyx.org>
Thu, 31 May 2007 14:56:07 +0000 (14:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18597 a592a061-630c-0410-9148-cb99ea01b6c8

po/lyx_pot.py

index 6119ee6c067790ed678e0321c33693bf92366b4a..fb7578d026412d82bdd0a58b7c5d08ab9835004a 100755 (executable)
@@ -38,6 +38,7 @@ def ui_l10n(input_files, output, base):
     Popupmenu = re.compile(r'^[^#]*PopupMenu\s+"[^"]+"\s+"([^"]*)"')
     Toolbar = re.compile(r'^[^#]*Toolbar\s+"[^"]+"\s+"([^"]*)"')
     Item = re.compile(r'[^#]*Item\s+"([^"]*)"')
+    TableInsert = re.compile(r'[^#]*TableInsert\s+"([^"]*)"')
     for src in input_files:
         input = open(src)
         for lineno, line in enumerate(input.readlines()):
@@ -50,6 +51,8 @@ def ui_l10n(input_files, output, base):
                 (string,) = Toolbar.match(line).groups()
             elif Item.match(line):
                 (string,) = Item.match(line).groups()
+            elif TableInsert.match(line):
+                (string,) = TableInsert.match(line).groups()
             else:
                 continue
             string = string.replace('"', '')