mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 01:03:11 +02:00
...
This commit is contained in:
parent
d3069b4b83
commit
156478d133
1 changed files with 3 additions and 1 deletions
|
|
@ -532,7 +532,9 @@ def fmt_err(book_id):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue