mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use ngettext for number of selected books in statusbar
This commit is contained in:
parent
1fa304fed8
commit
7809a6798c
@ -255,7 +255,7 @@ class StatusBar(QStatusBar): # {{{
|
|||||||
else:
|
else:
|
||||||
base = _('%d books') % self.total
|
base = _('%d books') % self.total
|
||||||
if self.selected > 0:
|
if self.selected > 0:
|
||||||
base = _('%(num)s, %(sel)d selected') % dict(num=base, sel=self.selected)
|
base = ngettext('%(num)s, %(sel)d selected', '%(num)s, %(sel)d selected', self.selected) % dict(num=base, sel=self.selected)
|
||||||
if self.library_total != self.total:
|
if self.library_total != self.total:
|
||||||
base = _('{0}, {1} total').format(base, self.library_total)
|
base = _('{0}, {1} total').format(base, self.library_total)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user