From e61b68347ac79c656a77ec32fba00ed625994093 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Mar 2015 18:14:11 +0530 Subject: [PATCH] Fix #375 (Minor toolbar string fix: 1 book, 0 or > 1 - books) --- src/calibre/gui2/actions/choose_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/choose_library.py b/src/calibre/gui2/actions/choose_library.py index b75100da43..fedf4742d4 100644 --- a/src/calibre/gui2/actions/choose_library.py +++ b/src/calibre/gui2/actions/choose_library.py @@ -290,7 +290,7 @@ class ChooseLibraryAction(InterfaceAction): return self.stats.pretty(path) def update_tooltip(self, count): - tooltip = self.action_spec[2] + '\n\n' + _('{0} [{1} books]').format( + tooltip = self.action_spec[2] + '\n\n' + ngettext('{0} [{1} book]', '{0} [{1} books]', count).format( getattr(self, 'last_lname', ''), count) a = self.qaction a.setToolTip(tooltip)