From 59d938bc7e6c55c051ea6ab4985e24352ff6efb7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 11 Sep 2012 08:37:37 +0900 Subject: [PATCH] fix an i18n string --- anki/stats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index ea43284b3..5ea1ac7e6 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -287,10 +287,11 @@ group by day order by day""" % (self._limit(), lim), self._line(i, _("If you studied every day"), self._avgDay( tot, period, unit)) if total and tot: + perMin = total / float(tot) + perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin self._line( i, _("Average answer time"), - ngettext("%0.1fs (%d card/minute)", "%0.1fs (%d cards/minute)", \ - (total / float(tot))) % ((tot*60)/total, total / float(tot)) ) + "%0.1fs (%s)" % ((tot*60)/total, perMin)) return self._lineTbl(i), int(tot) def _splitRepData(self, data, spec):