mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* lyx_pot.py:
- make IconPalette tooltips translatable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fa2c0a3e2c
commit
d103ab6cf9
@ -44,6 +44,7 @@ def ui_l10n(input_files, output, base):
|
||||
output = open(output, 'w')
|
||||
Submenu = re.compile(r'^[^#]*Submenu\s+"([^"]*)"')
|
||||
Popupmenu = re.compile(r'^[^#]*PopupMenu\s+"[^"]+"\s+"([^"]*)"')
|
||||
IconPalette = re.compile(r'^[^#]*IconPalette\s+"[^"]+"\s+"([^"]*)"')
|
||||
Toolbar = re.compile(r'^[^#]*Toolbar\s+"[^"]+"\s+"([^"]*)"')
|
||||
Item = re.compile(r'[^#]*Item\s+"([^"]*)"')
|
||||
TableInsert = re.compile(r'[^#]*TableInsert\s+"([^"]*)"')
|
||||
@ -55,6 +56,8 @@ def ui_l10n(input_files, output, base):
|
||||
string = string.replace('_', ' ')
|
||||
elif Popupmenu.match(line):
|
||||
(string,) = Popupmenu.match(line).groups()
|
||||
elif IconPalette.match(line):
|
||||
(string,) = IconPalette.match(line).groups()
|
||||
elif Toolbar.match(line):
|
||||
(string,) = Toolbar.match(line).groups()
|
||||
elif Item.match(line):
|
||||
|
Loading…
Reference in New Issue
Block a user