From 5e2a83261c9bfbfa0b2579f8fcf5f74cbf10b233 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 May 2020 13:08:49 +0530 Subject: [PATCH] Fix #1878345 [[Enhancement] Translate default input and output profiles](https://bugs.launchpad.net/calibre/+bug/1878345) --- src/calibre/gui2/convert/page_setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/convert/page_setup.py b/src/calibre/gui2/convert/page_setup.py index 91a3fc97be..45b7539bba 100644 --- a/src/calibre/gui2/convert/page_setup.py +++ b/src/calibre/gui2/convert/page_setup.py @@ -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: