diff --git a/anki/stats.py b/anki/stats.py index 94abe95b0..d046183da 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -172,8 +172,8 @@ select count(), sum(case when ease = 1 then 0 else 1 end) from revlog where lastIvl >= 21 and id > ?"""+lim, (self.col.sched.dayCutoff-86400)*1000) b += "
" if mcnt: - b += _("Correct answers on mature cards: %d/%d (%.1f%%)") % ( - msum, mcnt, msum / float(mcnt) * 100) + b += _("Correct answers on mature cards: %(a)d/%(b)d (%(c).1f%%)") % dict( + a=msum, b=mcnt, c=(msum / float(mcnt) * 100)) else: b += _("No mature cards were studied today.") return b diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index fef8d2cb6..64fb3ae4d 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -170,10 +170,10 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000) self.mw.pm.profile.get("hideDeckLotsMsg")): return "" return "
"+( - _("You have a lot of decks. Please see %s. %s") % ( - "%s" % _("this page"), - "
(%s)" % (_("hide")))+ - "%s" % _("this page")), + b=("
(%s)" % (_("hide"))+ + "