mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
43547cd11d
commit
46b898cf3b
@ -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('"', '')
|
||||
|
Loading…
Reference in New Issue
Block a user