From 6ab251cbadd5d43e3f7d1cf32a0d5ed7b0e599a1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Sep 2021 15:15:09 +0530 Subject: [PATCH] Fix #1943358 [[Enhancement] Translate shortcuts tooltips](https://bugs.launchpad.net/calibre/+bug/1943358) --- src/calibre/gui2/metadata/single.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/metadata/single.py b/src/calibre/gui2/metadata/single.py index cf4c9ca6a5..a45cbb212d 100644 --- a/src/calibre/gui2/metadata/single.py +++ b/src/calibre/gui2/metadata/single.py @@ -708,13 +708,11 @@ class MetadataSingleDialogBase(QDialog): next_ = self.db.title(self.row_list[self.current_row+1]) if next_ is not None: - tip = (_('Save changes and edit the metadata of %s')+ - ' [Alt+Right]')%next_ + tip = _('Save changes and edit the metadata of {} [Alt+Right]').format(next_) self.next_button.setToolTip(tip) self.next_button.setEnabled(next_ is not None) if prev is not None: - tip = (_('Save changes and edit the metadata of %s')+ - ' [Alt+Left]')%prev + tip = _('Save changes and edit the metadata of {} [Alt+Left]').format(prev) self.prev_button.setToolTip(tip) self.prev_button.setEnabled(prev is not None) self.button_box.button(QDialogButtonBox.StandardButton.Ok).setDefault(True)