From ac7bd4f736683030dfa6fb1ff614b638a9d37c81 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 May 2013 13:58:41 +0900 Subject: [PATCH] fix i18n issue --- aqt/clayout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/clayout.py b/aqt/clayout.py index 2e9038ab5..47c2acc87 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -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()):