mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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
|
||||
report = self.col.emptyCardReport(cids)
|
||||
self.progress.finish()
|
||||
part1 = ngettext("%d card", "%d cards", len(cids))
|
||||
part2 = "to delete:\n\n%s" % report
|
||||
diag, box = showText("%s %s" % (part1, part2), run=False)
|
||||
part1 = ngettext("%d card", "%d cards", len(cids)) % len(cids)
|
||||
part1 = _("%s to delete:") % part1
|
||||
diag, box = showText(part1 + "\n\n" + report, run=False)
|
||||
box.addButton(_("Delete Cards"), QDialogButtonBox.AcceptRole)
|
||||
box.button(QDialogButtonBox.Close).setDefault(True)
|
||||
def onDelete():
|
||||
|
|
Loading…
Reference in a new issue