mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix i18n msg
This commit is contained in:
parent
5b942f959d
commit
f107d61242
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ select count(), sum(time)/1000 from revlog
|
||||||
where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
||||||
cards = cards or 0
|
cards = cards or 0
|
||||||
thetime = thetime or 0
|
thetime = thetime or 0
|
||||||
msgp1 = ngettext("Studied %d card", "Studied %d cards", cards) % cards
|
msgp1 = ngettext("%d card", "%d cards", cards) % cards
|
||||||
buf = "%s in %s today." % (msgp1, fmtTimeSpan(thetime))
|
buf = _("Studied %(a)s in %(b)s today.") % dict(a=msgp1, b=fmtTimeSpan(thetime))
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
def _renderDeckTree(self, nodes, depth=0):
|
def _renderDeckTree(self, nodes, depth=0):
|
||||||
|
|
Loading…
Reference in a new issue