diff --git a/pylib/anki/stats.py b/pylib/anki/stats.py index 15516dc95..e89bc7e53 100644 --- a/pylib/anki/stats.py +++ b/pylib/anki/stats.py @@ -276,7 +276,8 @@ from revlog where id > ? """ def _dueInfo(self, tot, num) -> str: i: List[str] = [] - self._line(i, _("Total"), ngettext("%d review", "%d reviews", tot) % tot) + self._line(i, _("Total"), + self.col.backend.translate(StringsGroup.STATISTICS, "reviews", reviews=tot)) self._line(i, _("Average"), self._avgDay(tot, num, _("reviews"))) tomorrow = self.col.db.scalar( f""" diff --git a/rslib/src/i18n/statistics.ftl b/rslib/src/i18n/statistics.ftl index f7d5df1ba..1bbe20d8a 100644 --- a/rslib/src/i18n/statistics.ftl +++ b/rslib/src/i18n/statistics.ftl @@ -51,6 +51,12 @@ cards = { $cards -> *[other] {$cards} cards } +# a count of how many cards have been answered, eg "Total: 34 reviews" +reviews = { $reviews -> + [one] 1 review + *[other] {$reviews} reviews + } + # Shown at the bottom of the deck list, and in the statistics screen. # eg "Studied 3 cards in 13 seconds today (4.33s/card)." # The { in-time-span-seconds } part should be pasted in from the English