From d2b1d187dafc30c4b62f7ee74105fc6d92bb7e50 Mon Sep 17 00:00:00 2001 From: Derbeth Date: Thu, 28 Aug 2014 08:16:12 +0200 Subject: [PATCH] allow better translations of added cards statistics --- anki/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index 68b9f10e5..7ead5755f 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -292,8 +292,8 @@ group by day order by day""" % (self._limit(), lim), # base off date of earliest added card period = self._deckAge('add') i = [] - self._line(i, _("Total"), _("%i cards") % tot) - self._line(i, _("Average"), _("%.01f cards/day") % (float(tot) / period)) + self._line(i, _("Total"), ngettext("%d card", "%d cards", tot) % tot) + self._line(i, _("Average"), self._avgDay(tot, period, _("cards"))) txt += self._lineTbl(i) return txt