From 1558b858a607a7230c490407a302df4608ecec97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Jul 2020 21:17:36 +0530 Subject: [PATCH] Fix translated string not being used in a couple of places --- src/calibre/gui2/tweak_book/boss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index d24e845926..c93f11f64a 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -1276,7 +1276,7 @@ class Boss(QObject): if not syntax: return error_dialog( self.gui, _('Unsupported file format'), - _('Editing files of type %s is not supported' % mt), show=True) + _('Editing files of type %s is not supported') % mt, show=True) editor = self.edit_file(name, syntax) if anchor and editor is not None: if editor.go_to_anchor(anchor): @@ -1603,7 +1603,7 @@ class Boss(QObject): if not syntax: return error_dialog( self.gui, _('Unsupported file format'), - _('Editing files of type %s is not supported' % mime), show=True) + _('Editing files of type %s is not supported') % mime, show=True) return self.edit_file(name, syntax) def edit_next_file(self, backwards=False):