File: lib/ui/stdtoolbars.inc
Line: 77

This line says:
        TableInsert "Insert table"

Most other toolbar entries are of type "Item", this one is a "TableInsert".
Perhaps the "TableInsert" have problems with internationalization?

You are right. TableInsert is not handled at all. I am not sure how
many different types of menu items there are in this file, but
lyx_po.py handles them selectively to avoid unnecessary translations.

Jose, can the attached patch go in?

Index: po/lyx_pot.py
===================================================================
--- po/lyx_pot.py       (revision 18585)
+++ po/lyx_pot.py       (working copy)
@@ -38,6 +38,7 @@
    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 @@
                (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('"', '')


Bo

Reply via email to