mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1878345 [[Enhancement] Translate default input and output profiles](https://bugs.launchpad.net/calibre/+bug/1878345)
This commit is contained in:
parent
fba75eb5ea
commit
5e2a83261c
@ -27,7 +27,9 @@ class ProfileModel(QAbstractListModel):
|
||||
def data(self, index, role):
|
||||
profile = self.profiles[index.row()]
|
||||
if role == Qt.DisplayRole:
|
||||
return (profile.name)
|
||||
if profile.name.startswith('Default '):
|
||||
return _('Default profile')
|
||||
return profile.name
|
||||
if role in (Qt.ToolTipRole, Qt.StatusTipRole, Qt.WhatsThisRole):
|
||||
w, h = profile.screen_size
|
||||
if w >= 10000:
|
||||
|
Loading…
x
Reference in New Issue
Block a user