From 8d9c1cf191eb4d7b871ff31373bd48bdce2f6abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susanna=20Bj=C3=B6rverud?= Date: Tue, 7 Apr 2009 11:14:10 +0200 Subject: [PATCH] Adding html comments to strings to allow them to be translated differently --- anki/stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index 0dbead3c9..9386d4b9f 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -332,18 +332,18 @@ class DeckStats(object): html += _("Total number of facts:") + " %d

" % d.factCount html += "" + _("Card counts") + "
" - html += _("Mature cards:") + " %(old)d (%(oldP)s)
" % { + html += _("Mature cards: ") + " %(old)d (%(oldP)s)
" % { 'old': stats['old'], 'oldP' : fmtPerc(stats['oldP'])} - html += _("Young cards:") + " %(young)d (%(youngP)s)
" % { + html += _("Young cards: ") + " %(young)d (%(youngP)s)
" % { 'young': stats['young'], 'youngP' : fmtPerc(stats['youngP'])} html += _("Unseen cards:") + " %(new)d (%(newP)s)

" % { 'new': stats['new'], 'newP' : fmtPerc(stats['newP'])} html += "" + _("Correct answers") + "
" - html += _("Mature cards:") + " " + fmtPerc(stats['gMatureYes%']) + ( + html += _("Mature cards: ") + " " + fmtPerc(stats['gMatureYes%']) + ( " " + _("%(partOf)d of %(totalSum)d") % { 'partOf' : stats['gMatureYes'], 'totalSum' : stats['gMatureTotal'] } + "
") - html += _("Young cards:") + " " + fmtPerc(stats['gYoungYes%']) + ( + html += _("Young cards: ") + " " + fmtPerc(stats['gYoungYes%']) + ( " " + _("%(partOf)d of %(totalSum)d") % { 'partOf' : stats['gYoungYes'], 'totalSum' : stats['gYoungTotal'] } + "
")