From 3e30513da66878ca0da39c8d7f9cbc15a3d403c4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Nov 2016 22:53:51 +0530 Subject: [PATCH] ... --- src/calibre/gui2/dialogs/select_formats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/dialogs/select_formats.py b/src/calibre/gui2/dialogs/select_formats.py index baae2f50f4..d1de9b5202 100644 --- a/src/calibre/gui2/dialogs/select_formats.py +++ b/src/calibre/gui2/dialogs/select_formats.py @@ -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):