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

This commit is contained in:
Kovid Goyal 2025-01-23 19:15:30 +05:30
parent d8168dd59c
commit ee0606e044
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -58,7 +58,7 @@ class ValueTableWidgetItem(QTableWidgetItem):
def __init__(self, txt): def __init__(self, txt):
self._key = txt self._key = txt
is_template = txt == TEMPLATE_ICON_INDICATOR 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')) self.setIcon(QIcon.cached_icon('debug.png' if is_template else 'icon_choose.png'))
@property @property