mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix i18n issue
This commit is contained in:
parent
a379e47ca5
commit
ac7bd4f736
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ class CardLayout(QDialog):
|
||||||
return showInfo(_("At least one card type is required."))
|
return showInfo(_("At least one card type is required."))
|
||||||
cards = self.mm.tmplUseCount(self.model, idx)
|
cards = self.mm.tmplUseCount(self.model, idx)
|
||||||
cards = ngettext("%d card", "%d cards", cards) % cards
|
cards = ngettext("%d card", "%d cards", cards) % cards
|
||||||
msg = _("Delete the '%s' card type, and its %s?" %
|
msg = _("Delete the '%(a)s' card type, and its %(b)s?" %
|
||||||
(self.model['tmpls'][idx]['name'], cards))
|
dict(a=self.model['tmpls'][idx]['name'], b=cards))
|
||||||
if not askUser(msg):
|
if not askUser(msg):
|
||||||
return
|
return
|
||||||
if not self.mm.remTemplate(self.model, self.cards[idx].template()):
|
if not self.mm.remTemplate(self.model, self.cards[idx].template()):
|
||||||
|
|
Loading…
Reference in a new issue