mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Some more incorrect uses of ngettext
This commit is contained in:
parent
0adddea81b
commit
0161d6ce08
@ -316,7 +316,7 @@ class AutoAdder(QObject):
|
|||||||
if count > 0:
|
if count > 0:
|
||||||
m.books_added(count)
|
m.books_added(count)
|
||||||
gui.status_bar.show_message(
|
gui.status_bar.show_message(
|
||||||
ngettext('Added a book automatically from {src}', 'Added {num} books automatically from {src}', count).format(
|
(_('Added a book automatically from {src}') if count == 1 else _('Added {num} books automatically from {src}')).format(
|
||||||
num=count, src=self.worker.path), 2000)
|
num=count, src=self.worker.path), 2000)
|
||||||
gui.refresh_cover_browser()
|
gui.refresh_cover_browser()
|
||||||
|
|
||||||
|
@ -118,10 +118,11 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{
|
|||||||
|
|
||||||
msg = '%s' % '\n'.join(res)
|
msg = '%s' % '\n'.join(res)
|
||||||
warning_dialog(parent, _('Could not convert some books'),
|
warning_dialog(parent, _('Could not convert some books'),
|
||||||
ngettext(
|
(
|
||||||
'Could not convert the book because no supported source format was found',
|
_('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.',
|
if len(res) == 1 else
|
||||||
len(res)).format(num=len(res), tot=total),
|
_('Could not convert {num} of {tot} books, because no supported source formats were found.'),
|
||||||
|
).format(num=len(res), tot=total),
|
||||||
msg).exec_()
|
msg).exec_()
|
||||||
|
|
||||||
return jobs, changed, bad
|
return jobs, changed, bad
|
||||||
|
Loading…
x
Reference in New Issue
Block a user