diff --git a/ankiqt/ui/status.py b/ankiqt/ui/status.py index 932900a7e..5e5457298 100644 --- a/ankiqt/ui/status.py +++ b/ankiqt/ui/status.py @@ -189,31 +189,27 @@ class StatusView(object): self.progressBar.setPalette(p) self.progressBar.setValue(stats['dYesTotal%']) # tooltips - stats['avgTime'] = anki.utils.fmtTimeSpan(stats['dAverageTime'], point=2) - stats['revTime'] = anki.utils.fmtTimeSpan(stats['dReviewTime'], point=2) - tip = _("""

Performance

-The top bar shows your performance today. The bottom bar shows your
+ tip = "

" + _("Performance") + "

" + tip += _("""The top bar shows your performance today. The bottom bar shows your
performance on cards scheduled for 21 days or more. The bottom bar should
generally be between 80-95%% - lower and you're forgetting mature cards
-too often, higher and you're spending too much time reviewing. -

Reviews today

-Correct today: %(dYesTotal%)0.1f%% -(%(dYesTotal)d of %(dTotal)d)
-Average time per answer: %(avgTime)s
-Total review time: %(revTime)s""") % stats - stats['avgTime'] = anki.utils.fmtTimeSpan(stats['gAverageTime'], point=2) - stats['revTime'] = anki.utils.fmtTimeSpan(stats['gReviewTime'], point=2) - tip += _("""

All Reviews

-Correct over a month: %(gMatureYes%)0.1f%% -(%(gMatureYes)d of %(gMatureTotal)d)
-Average time per answer: %(avgTime)s
-Total review time: %(revTime)s
-Correct under a month: %(gYoungYes%)0.1f%% -(%(gYoungYes)d of %(gYoungTotal)d)
-Correct first time: %(gNewYes%)0.1f%% -(%(gNewYes)d of %(gNewTotal)d)
-Total correct: %(gYesTotal%)0.1f%% -(%(gYesTotal)d of %(gTotal)d)""") % stats +too often, higher and you're spending too much time reviewing.""") + tip += "

" + _("Reviews today") + "

" + tip += "" + _("Correct today: ") + anki.utils.fmtPercentage(stats['dYesTotal%'], point=1) + tip += " (" + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['dYesTotal'], 'totalSum' : stats['dTotal'] } + ")
" + tip += _("Average time per answer: ") + anki.utils.fmtTimeSpan(stats['dAverageTime'], point=2) +"
" + tip += _("Total review time: ") + anki.utils.fmtTimeSpan(stats['dReviewTime'], point=2) + tip += "

" + _("All Reviews") + "

" + tip += "" + _("Correct over a month: ") + anki.utils.fmtPercentage(stats['gMatureYes%'], point=1) + tip += " (" + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gMatureYes'], 'totalSum' : stats['gMatureTotal'] } + ")
" + tip += _("Average time per answer: ") + anki.utils.fmtTimeSpan(stats['gAverageTime'], point=2) +"
" + tip += _("Total review time: ") + anki.utils.fmtTimeSpan(stats['gReviewTime'], point=2) +"
" + tip += _("Correct under a month: ") + anki.utils.fmtPercentage(stats['gYoungYes%'], point=1) + tip += " (" + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gYoungYes'], 'totalSum' : stats['gYoungTotal'] } + ")
" + tip += _("Correct first time: ") + anki.utils.fmtPercentage(stats['gNewYes%'], point=1) + tip += " (" + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gNewYes'], 'totalSum' : stats['gNewTotal'] } + ")
" + tip += _("Total correct: ") + anki.utils.fmtPercentage(stats['gYesTotal%'], point=1) + tip += " (" + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gYesTotal'], 'totalSum' : stats['gTotal'] } + ")
" self.combinedBar.setToolTip(tip) if self.main.config['showTimer']: self.drawTimer()