From 13df7004dfb4e281ece934277e68c8ea34bdf3e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Dec 2019 07:53:42 +0530 Subject: [PATCH] String changes --- src/calibre/gui2/metadata/single_download.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index a9c1d50299..5f71d94ae4 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -931,9 +931,13 @@ class CoversWidget(QWidget): # {{{ if num < 2: txt = _('Could not find any covers for %s')%self.book.title else: - txt = _('Found %(num)d possible covers for %(title)s. ' - 'When the download completes, the covers will be sorted by size.')%dict(num=num-1, - title=self.title) + if num == 2: + txt = _('Found a cover for {title}').format(self.title) + else: + txt = _( + 'Found {num} covers for {title}. When the download completes,' + ' the covers will be sorted by size.').format( + title=self.title, num=num-1) self.msg.setText(txt) self.msg.setWordWrap(True) self.covers_view.stop()