translation issues

This commit is contained in:
Damien Elmes 2013-05-24 10:46:44 +09:00
parent b253a1736d
commit 97a92e5ea9
2 changed files with 6 additions and 6 deletions

View File

@ -172,8 +172,8 @@ select count(), sum(case when ease = 1 then 0 else 1 end) from revlog
where lastIvl >= 21 and id > ?"""+lim, (self.col.sched.dayCutoff-86400)*1000)
b += "<br>"
if mcnt:
b += _("Correct answers on mature cards: %d/%d (%.1f%%)") % (
msum, mcnt, msum / float(mcnt) * 100)
b += _("Correct answers on mature cards: %(a)d/%(b)d (%(c).1f%%)") % dict(
a=msum, b=mcnt, c=(msum / float(mcnt) * 100))
else:
b += _("No mature cards were studied today.")
return b

View File

@ -170,10 +170,10 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
self.mw.pm.profile.get("hideDeckLotsMsg")):
return ""
return "<br><div style='width:50%;border: 1px solid #000;padding:5px;'>"+(
_("You have a lot of decks. Please see %s. %s") % (
"<a href=lots>%s</a>" % _("this page"),
"<br><small><a href=hidelots>(%s)</a></small>" % (_("hide")))+
"</div")
_("You have a lot of decks. Please see %(a)s. %(b)s") % dict(
a=("<a href=lots>%s</a>" % _("this page")),
b=("<br><small><a href=hidelots>(%s)</a></small>" % (_("hide"))+
"</div")))
def _renderDeckTree(self, nodes, depth=0):
if not nodes: