Fix #1812388 [problem with polish fonction - version 3.38](https://bugs.launchpad.net/calibre/+bug/1812388)

This commit is contained in:
Kovid Goyal 2019-01-18 20:00:51 +05:30
parent b5dff9ba89
commit 8c8d520ff6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -289,9 +289,13 @@ class Polish(QDialog): # {{{
db.copy_format_to(book_id, fmt, f, index_is_id=True)
data['files'].append(f.name)
nums = num
if hasattr(self, 'pd'):
nums = self.pd.max - num
desc = ngettext(_('Polish %s')%mi.title,
_('Polish book %(nums)s of %(tot)s (%(title)s)')%dict(
nums=self.pd.max - num, tot=len(self.book_id_map),
nums=nums, tot=len(self.book_id_map),
title=mi.title), len(self.book_id_map))
if hasattr(self, 'pd'):
self.pd.set_msg(_('Queueing book %(nums)s of %(tot)s (%(title)s)')%dict(