diff --git a/src/calibre/gui2/actions/tag_mapper.py b/src/calibre/gui2/actions/tag_mapper.py index af0f3f310e..c4e2519e0c 100644 --- a/src/calibre/gui2/actions/tag_mapper.py +++ b/src/calibre/gui2/actions/tag_mapper.py @@ -33,11 +33,16 @@ class TagMapAction(InterfaceAction): from calibre.gui2.tag_mapper import RulesDialog from calibre.gui2.device import BusyCursor d = RulesDialog(self.gui) - d.setWindowTitle(_('Map tags for %d books in the library') % len(book_ids)) + d.setWindowTitle(ngettext( + 'Map tags for one book in the library', + 'Map tags for {} books in the library', len(book_ids)).format(len(book_ids))) d.rules = gprefs.get('library-tag-mapper-ruleset', ()) - txt = _('The changes will be applied to the %d selected books') if selected else _( - 'The changes will be applied to %d books in the library') - d.edit_widget.msg_label.setText(d.edit_widget.msg_label.text() + '
' + txt % len(book_ids))
+ txt = ngettext(
+ 'The changes will be applied to the ' + txt.format(len(book_ids)))
if d.exec_() != d.Accepted:
return
with BusyCursor():