mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:43:32 +02:00
Fix #1869312 [String not translated](https://bugs.launchpad.net/calibre/+bug/1869312)
This commit is contained in:
parent
53de96b18b
commit
a3b83ab1b9
2 changed files with 3 additions and 3 deletions
|
|
@ -225,7 +225,7 @@ def reset_to_defaults():
|
|||
w.reset_to_default()
|
||||
|
||||
|
||||
def prefs_panel_handler(title, get_prefs_data, on_close=None, icon='close'):
|
||||
def prefs_panel_handler(title_func, get_prefs_data, on_close=None, icon='close'):
|
||||
|
||||
def close_action():
|
||||
if on_close is not None:
|
||||
|
|
@ -234,7 +234,7 @@ def close_action():
|
|||
|
||||
def init_prefs_panel(container_id):
|
||||
container = document.getElementById(container_id)
|
||||
create_top_bar(container, title=title, action=close_action, icon=icon)
|
||||
create_top_bar(container, title=title_func(), action=close_action, icon=icon)
|
||||
container.appendChild(E.div())
|
||||
create_prefs_widget(container.lastChild, get_prefs_data())
|
||||
|
||||
|
|
|
|||
|
|
@ -509,7 +509,7 @@ def get_prefs():
|
|||
]
|
||||
|
||||
def tb_config_panel_handler():
|
||||
return prefs_panel_handler(_('Configure Tag browser'), get_prefs)
|
||||
return prefs_panel_handler(def(): return _('Configure Tag browser');, get_prefs)
|
||||
# }}}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue