This commit is contained in:
Kovid Goyal 2016-11-01 22:51:32 +05:30
parent 156478d133
commit 68637cd26a

View File

@ -497,7 +497,8 @@ class PolishAction(InterfaceAction):
if d.jobs: if d.jobs:
self.gui.jobs_pointer.start() self.gui.jobs_pointer.start()
self.gui.status_bar.show_message( self.gui.status_bar.show_message(
_('Start polishing of %d book(s)') % len(d.jobs), 2000) ngettext('Start polishing the book', 'Start polishing of {} books',
len(d.jobs)).format(len(d.jobs)), 2000)
def book_polished(self, job): def book_polished(self, job):
if job.failed: if job.failed:
@ -534,4 +535,3 @@ if __name__ == '__main__':
from calibre.library import db from calibre.library import db
d = Polish(db(), {1:{'EPUB'}, 2:{'AZW3'}}) d = Polish(db(), {1:{'EPUB'}, 2:{'AZW3'}})
d.exec_() d.exec_()