mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fix invalid translation
This commit is contained in:
parent
9b27b06b68
commit
d6f9fb4ab0
1 changed files with 5 additions and 3 deletions
|
@ -2,18 +2,20 @@
|
||||||
# Copyright: Damien Elmes <anki@ichi2.net>
|
# Copyright: Damien Elmes <anki@ichi2.net>
|
||||||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
from aqt.qt import *
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from aqt.qt import *
|
||||||
from anki.consts import *
|
from anki.consts import *
|
||||||
import aqt
|
import aqt
|
||||||
from anki.sound import playFromText, clearAudioQueue
|
from anki.sound import playFromText, clearAudioQueue
|
||||||
from aqt.utils import saveGeom, restoreGeom, getBase, mungeQA,\
|
from aqt.utils import saveGeom, restoreGeom, getBase, mungeQA,\
|
||||||
showInfo, askUser, getOnlyText, \
|
showInfo, askUser, getOnlyText, \
|
||||||
showWarning, openHelp, openLink
|
showWarning, openHelp
|
||||||
from anki.utils import isMac, isWin, joinFields
|
from anki.utils import isMac, isWin, joinFields
|
||||||
from aqt.webview import AnkiWebView
|
from aqt.webview import AnkiWebView
|
||||||
import anki.js
|
import anki.js
|
||||||
|
|
||||||
|
|
||||||
class CardLayout(QDialog):
|
class CardLayout(QDialog):
|
||||||
|
|
||||||
def __init__(self, mw, note, ord=0, parent=None, addMode=False):
|
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."))
|
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 '%(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))
|
dict(a=self.model['tmpls'][idx]['name'], b=cards))
|
||||||
if not askUser(msg):
|
if not askUser(msg):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue