diff --git a/aqt/clayout.py b/aqt/clayout.py index 413f1175d..cec4686de 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -2,18 +2,20 @@ # Copyright: Damien Elmes # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -from aqt.qt import * import re + +from aqt.qt import * from anki.consts import * import aqt from anki.sound import playFromText, clearAudioQueue from aqt.utils import saveGeom, restoreGeom, getBase, mungeQA,\ showInfo, askUser, getOnlyText, \ - showWarning, openHelp, openLink + showWarning, openHelp from anki.utils import isMac, isWin, joinFields from aqt.webview import AnkiWebView import anki.js + class CardLayout(QDialog): def __init__(self, mw, note, ord=0, parent=None, addMode=False): @@ -135,7 +137,7 @@ 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 '%(a)s' card type, and its %(b)s?" % + 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