mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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):
|
||||
rep = ""
|
||||
for ords, flds in self.db.all("""
|
||||
select group_concat(ord+1), flds from cards c, notes n
|
||||
for ords, cnt, flds in self.db.all("""
|
||||
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)):
|
||||
rep += "Cards: %s\nFields: %s\n\n" % (
|
||||
ords, flds.replace("\x1f", " / "))
|
||||
rep += _("Cards: %(c)s\nFields: %(f)s\n\n") % dict(
|
||||
c=ords, f=flds.replace("\x1f", " / "))
|
||||
return rep
|
||||
|
||||
# Field checksums and sorting fields
|
||||
|
|
Loading…
Reference in a new issue