mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
d8168dd59c
commit
ee0606e044
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user