fix an i18n string

This commit is contained in:
Damien Elmes 2012-09-11 08:37:37 +09:00
parent b8c2110cb0
commit 59d938bc7e

View file

@ -287,10 +287,11 @@ group by day order by day""" % (self._limit(), lim),
self._line(i, _("If you studied every day"), self._avgDay( self._line(i, _("If you studied every day"), self._avgDay(
tot, period, unit)) tot, period, unit))
if total and tot: if total and tot:
perMin = total / float(tot)
perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin
self._line( self._line(
i, _("Average answer time"), i, _("Average answer time"),
ngettext("%0.1fs (%d card/minute)", "%0.1fs (%d cards/minute)", \ "%0.1fs (%s)" % ((tot*60)/total, perMin))
(total / float(tot))) % ((tot*60)/total, total / float(tot)) )
return self._lineTbl(i), int(tot) return self._lineTbl(i), int(tot)
def _splitRepData(self, data, spec): def _splitRepData(self, data, spec):