mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #375 (Minor toolbar string fix: 1 book, 0 or > 1 - books)
This commit is contained in:
parent
c69be0507c
commit
e61b68347a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user