This commit is contained in:
Kovid Goyal 2016-11-01 22:53:51 +05:30
parent 68637cd26a
commit 3e30513da6

View File

@ -35,9 +35,9 @@ class Formats(QAbstractListModel):
if role == Qt.ToolTipRole:
fmt = self.fmts[row]
count = self.counts[fmt]
return (
_('There are %(count)d book(s) with the %(fmt)s format')%dict(
count=count, fmt=fmt.upper()))
return ngettext('There is one book with the {fmt} format',
'There are {count} books with the {fmt} format', count).format(
count=count, fmt=fmt.upper())
return None
def flags(self, index):