handle TableInsert in lyx_pot.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18597 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-05-31 14:56:07 +00:00
parent 43547cd11d
commit 46b898cf3b

View File

@ -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('"', '')