From ee0606e044bad74c01decacb75bab1cce946a81d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Jan 2025 19:15:30 +0530 Subject: [PATCH] Dont use {template} as translatable string as {word} is python string formatting syntax adn translators dont know whether it shouldbe translated or not and automatic checking tools get confused --- src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py index 23f57dffa8..bb17bafdd7 100644 --- a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py +++ b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py @@ -58,7 +58,7 @@ class ValueTableWidgetItem(QTableWidgetItem): def __init__(self, txt): self._key = txt is_template = txt == TEMPLATE_ICON_INDICATOR - super().__init__(_('{template}') if is_template else txt) + super().__init__(('{' + _('template') + '}') if is_template else txt) self.setIcon(QIcon.cached_icon('debug.png' if is_template else 'icon_choose.png')) @property