mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
Merge pull request #91 from Derbeth/master
allow better translations of added cards statistics
This commit is contained in:
commit
024b74d4f9
1 changed files with 2 additions and 2 deletions
|
@ -292,8 +292,8 @@ group by day order by day""" % (self._limit(), lim),
|
||||||
# base off date of earliest added card
|
# base off date of earliest added card
|
||||||
period = self._deckAge('add')
|
period = self._deckAge('add')
|
||||||
i = []
|
i = []
|
||||||
self._line(i, _("Total"), _("%i cards") % tot)
|
self._line(i, _("Total"), ngettext("%d card", "%d cards", tot) % tot)
|
||||||
self._line(i, _("Average"), _("%.01f cards/day") % (float(tot) / period))
|
self._line(i, _("Average"), self._avgDay(tot, period, _("cards")))
|
||||||
txt += self._lineTbl(i)
|
txt += self._lineTbl(i)
|
||||||
|
|
||||||
return txt
|
return txt
|
||||||
|
|
Loading…
Reference in a new issue