From 0071ddfb897244c70d7ce84c37304a22cc2e3ecf Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Sun, 29 Jun 2014 12:56:05 -0500 Subject: [PATCH] fix ngettext mistake in cards/minute stat introduced in 46a38f843efd5ac37f1779ce9a24d30acd1b7035 --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index 391fa67a2..6b3591529 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -354,7 +354,7 @@ group by day order by day""" % (self._limit(), lim), if total and tot: perMin = total / float(tot) perMin = round(perMin, 1) - perMin = ngettext("%d card/minute", "%.01f cards/minute", perMin) % perMin + perMin = _("%.01f cards/minute") % perMin # don't round down to zero if float(perMin.split(' ')[0]) < 0.1: perMin = ''.join(["<", _("%.01f cards/minute")]) % 0.1