mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
card model > card template
This commit is contained in:
parent
e3feff6ca6
commit
91e90d8092
3 changed files with 6 additions and 6 deletions
|
@ -1025,11 +1025,11 @@ select id from fieldModels where modelId = :id order by ordinal""", id=m[1])
|
|||
for id in ids[1:]:
|
||||
if len(id[1]) != cms:
|
||||
msg = (_(
|
||||
"Model '%s' has wrong card model count") % name)
|
||||
"Model '%s' has wrong card template count") % name)
|
||||
break
|
||||
if len(id[2]) != fms:
|
||||
msg = (_(
|
||||
"Model '%s' has wrong field model count") % name)
|
||||
"Model '%s' has wrong field count") % name)
|
||||
break
|
||||
toProcess.append((name, ids))
|
||||
if msg:
|
||||
|
@ -1544,7 +1544,7 @@ select id from cards where cardModelId not in
|
|||
(select id from cardModels)""")
|
||||
if ids:
|
||||
self.deleteCards(ids)
|
||||
problems.append(_("Deleted %d cards with no card model" %
|
||||
problems.append(_("Deleted %d cards with no card template" %
|
||||
len(ids)))
|
||||
# facts missing a card?
|
||||
ids = self.deleteDanglingFacts()
|
||||
|
|
|
@ -107,8 +107,8 @@ class Importer(object):
|
|||
if active > 1 and not self.multipleCardsAllowed:
|
||||
raise ImportFormatError(type="tooManyCards",
|
||||
info=_("""
|
||||
The current importer only supports a single active card model. Please disable
|
||||
all but one card model."""))
|
||||
The current importer only supports a single active card template. Please disable
|
||||
all but one card template."""))
|
||||
# strip invalid cards
|
||||
cards = self.stripInvalid(cards)
|
||||
cards = self.stripOrTagDupes(cards)
|
||||
|
|
|
@ -288,7 +288,7 @@ class CardStats(object):
|
|||
self.addLine(_("Total Time"), _("%0.1f seconds") %
|
||||
c.reviewTime)
|
||||
self.addLine(_("Model Tags") + " "*5, c.fact.model.tags)
|
||||
self.addLine(_("Card Model"), c.cardModel.name)
|
||||
self.addLine(_("Card Template"), c.cardModel.name)
|
||||
self.txt += "</table>"
|
||||
return self.txt
|
||||
|
||||
|
|
Loading…
Reference in a new issue