mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix empty cards msg
This commit is contained in:
parent
ea3a5455c2
commit
fa07e4179a
1 changed files with 3 additions and 3 deletions
|
@ -894,9 +894,9 @@ will be lost. Continue?"""))
|
||||||
return
|
return
|
||||||
report = self.col.emptyCardReport(cids)
|
report = self.col.emptyCardReport(cids)
|
||||||
self.progress.finish()
|
self.progress.finish()
|
||||||
part1 = ngettext("%d card", "%d cards", len(cids))
|
part1 = ngettext("%d card", "%d cards", len(cids)) % len(cids)
|
||||||
part2 = "to delete:\n\n%s" % report
|
part1 = _("%s to delete:") % part1
|
||||||
diag, box = showText("%s %s" % (part1, part2), run=False)
|
diag, box = showText(part1 + "\n\n" + report, run=False)
|
||||||
box.addButton(_("Delete Cards"), QDialogButtonBox.AcceptRole)
|
box.addButton(_("Delete Cards"), QDialogButtonBox.AcceptRole)
|
||||||
box.button(QDialogButtonBox.Close).setDefault(True)
|
box.button(QDialogButtonBox.Close).setDefault(True)
|
||||||
def onDelete():
|
def onDelete():
|
||||||
|
|
Loading…
Reference in a new issue