From 12bde7b40fbd43586025cb917aa15fe4827b8631 Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Sun, 13 Jan 2013 20:20:17 +0100 Subject: [PATCH] allow 'Studied 1 card in ...' to be translated properly --- anki/stats.py | 2 +- aqt/deckbrowser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index 313840318..4bdb483d2 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -153,7 +153,7 @@ from revlog where id > ? """+lim, (self.col.sched.dayCutoff-86400)*1000) # studied def bold(s): return ""+unicode(s)+"" - msgp1 = ngettext("%d card", "%d cards", cards) % cards + msgp1 = ngettext("%d card", "%d cards", cards) % cards b += _("Studied %(a)s in %(b)s today.") % dict( a=bold(msgp1), b=bold(fmtTimeSpan(thetime, unit=1))) # again/pass count diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index 487ed9dca..4f72dcde4 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -152,7 +152,7 @@ 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("%d card", "%d cards", cards) % cards + msgp1 = ngettext("%d card", "%d cards", cards) % cards buf = _("Studied %(a)s in %(b)s today.") % dict(a=msgp1, b=fmtTimeSpan(thetime, unit=1)) return buf