Fix #1878345 [[Enhancement] Translate default input and output profiles](https://bugs.launchpad.net/calibre/+bug/1878345)

This commit is contained in:
Kovid Goyal 2020-05-13 13:08:49 +05:30
parent fba75eb5ea
commit 5e2a83261c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: