make 's' translatable in stats

thanks to "lumininous spice" for the heads up
This commit is contained in:
Damien Elmes 2013-10-26 10:53:15 +09:00
parent 330e991d7d
commit 04ff4cc3fc

View File

@ -356,7 +356,7 @@ group by day order by day""" % (self._limit(), lim),
perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin
self._line( self._line(
i, _("Average answer time"), i, _("Average answer time"),
"%0.1fs (%s)" % ((tot*60)/total, perMin)) _("%(a)0.1fs (%(b)s)" % dict(a=(tot*60)/total, b=perMin)))
return self._lineTbl(i), int(tot) return self._lineTbl(i), int(tot)
def _splitRepData(self, data, spec): def _splitRepData(self, data, spec):