From a3b83ab1b9afa849f75fb384c48b6ee22777c8a6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Mar 2020 12:40:50 +0530 Subject: [PATCH] Fix #1869312 [String not translated](https://bugs.launchpad.net/calibre/+bug/1869312) --- src/pyj/book_list/prefs.pyj | 4 ++-- src/pyj/book_list/search.pyj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/book_list/prefs.pyj b/src/pyj/book_list/prefs.pyj index aa8c9d8989..f38b172afe 100644 --- a/src/pyj/book_list/prefs.pyj +++ b/src/pyj/book_list/prefs.pyj @@ -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 prefs_panel_handler(title, get_prefs_data, on_close=None, icon='close'): 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()) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index 071d9bc04f..45a23283f8 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -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) # }}}