mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
i18n empty cards msg
This commit is contained in:
parent
9fab2834da
commit
b4cf7e39b5
1 changed files with 4 additions and 4 deletions
|
@ -408,11 +408,11 @@ select id from notes where id in %s and id not in (select nid from cards)""" %
|
||||||
|
|
||||||
def emptyCardReport(self, cids):
|
def emptyCardReport(self, cids):
|
||||||
rep = ""
|
rep = ""
|
||||||
for ords, flds in self.db.all("""
|
for ords, cnt, flds in self.db.all("""
|
||||||
select group_concat(ord+1), flds from cards c, notes n
|
select group_concat(ord+1), count(), flds from cards c, notes n
|
||||||
where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
|
where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
|
||||||
rep += "Cards: %s\nFields: %s\n\n" % (
|
rep += _("Cards: %(c)s\nFields: %(f)s\n\n") % dict(
|
||||||
ords, flds.replace("\x1f", " / "))
|
c=ords, f=flds.replace("\x1f", " / "))
|
||||||
return rep
|
return rep
|
||||||
|
|
||||||
# Field checksums and sorting fields
|
# Field checksums and sorting fields
|
||||||
|
|
Loading…
Reference in a new issue