From f107d61242c51c1d95db1afadebc1181223d2096 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 11 Sep 2012 08:18:30 +0900 Subject: [PATCH] fix i18n msg --- aqt/deckbrowser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index 232fcbcb9..d8474a7c7 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -156,8 +156,8 @@ select count(), sum(time)/1000 from revlog where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000) cards = cards or 0 thetime = thetime or 0 - msgp1 = ngettext("Studied %d card", "Studied %d cards", cards) % cards - buf = "%s in %s today." % (msgp1, fmtTimeSpan(thetime)) + msgp1 = ngettext("%d card", "%d cards", cards) % cards + buf = _("Studied %(a)s in %(b)s today.") % dict(a=msgp1, b=fmtTimeSpan(thetime)) return buf def _renderDeckTree(self, nodes, depth=0):