From b4cf7e39b5787b91a076abf6dd55ff9ad1429a3f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 21 Apr 2012 07:25:41 +0900 Subject: [PATCH] i18n empty cards msg --- anki/collection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anki/collection.py b/anki/collection.py index 8e9335eae..7f749739d 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -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