String changes

This commit is contained in:
Kovid Goyal 2019-12-20 07:53:42 +05:30
parent 1bc5389576
commit 13df7004df
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -931,9 +931,13 @@ class CoversWidget(QWidget): # {{{
if num < 2:
txt = _('Could not find any covers for <b>%s</b>')%self.book.title
else:
txt = _('Found <b>%(num)d</b> 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 <b>{num}</b> 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()