fix i18n issue

This commit is contained in:
Damien Elmes 2013-05-13 13:58:41 +09:00
parent a379e47ca5
commit ac7bd4f736

View file

@ -135,8 +135,8 @@ class CardLayout(QDialog):
return showInfo(_("At least one card type is required."))
cards = self.mm.tmplUseCount(self.model, idx)
cards = ngettext("%d card", "%d cards", cards) % cards
msg = _("Delete the '%s' card type, and its %s?" %
(self.model['tmpls'][idx]['name'], cards))
msg = _("Delete the '%(a)s' card type, and its %(b)s?" %
dict(a=self.model['tmpls'][idx]['name'], b=cards))
if not askUser(msg):
return
if not self.mm.remTemplate(self.model, self.cards[idx].template()):