From 156478d133cdfe4e86f8e3e9e3933bce4d6b6eee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Nov 2016 22:43:46 +0530 Subject: [PATCH] ... --- src/calibre/gui2/actions/copy_to_library.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/copy_to_library.py b/src/calibre/gui2/actions/copy_to_library.py index 8a97104397..9e0e60303a 100644 --- a/src/calibre/gui2/actions/copy_to_library.py +++ b/src/calibre/gui2/actions/copy_to_library.py @@ -532,7 +532,9 @@ class CopyToLibraryAction(InterfaceAction): return _('Copying: {0} failed, with error:\n{1}').format(title, tb) title, msg = _('Failed to copy some books'), _('Could not copy some books, click "Show Details" for more information.') tb = '\n\n'.join(map(fmt_err, self.worker.failed_books)) - tb = _('Failed to copy {0} book(s), see below for details').format(len(self.worker.failed_books)) + '\n\n' + tb + tb = ngettext('Failed to copy a book, see below for details', + 'Failed to copy {} books, see below for details', len(self.worker.failed_books)).format( + len(self.worker.failed_books)) + '\n\n' + tb if len(ids) == len(self.worker.failed_books): title, msg = _('Failed to copy books'), _('Could not copy any books, click "Show Details" for more information.') error_dialog(self.gui, title, msg, det_msg=tb, show=True)