From f902c9923baac4f66755c5b9824d2512a2e7f2bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Nov 2016 14:00:52 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/tools.py b/src/calibre/gui2/tools.py index a39412b025..3ce0fbf59e 100644 --- a/src/calibre/gui2/tools.py +++ b/src/calibre/gui2/tools.py @@ -119,8 +119,10 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{ msg = '%s' % '\n'.join(res) warning_dialog(parent, _('Could not convert some books'), - _('Could not convert %(num)d of %(tot)d books, because no supported source' - ' formats were found.') % dict(num=len(res), tot=total), + ngettext( + 'Could not convert the book because no supported source format was found', + 'Could not convert {num} of {tot} books, because no supported source formats were found.', + len(res)).format(num=len(res), tot=total), msg).exec_() return jobs, changed, bad @@ -394,5 +396,3 @@ def convert_existing(parent, db, book_ids, output_format): # {{{ return book_ids # }}} - -