mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
Plural strings
This commit is contained in:
parent
f5bbe02b6c
commit
4c537ce952
1 changed files with 17 additions and 7 deletions
|
@ -170,13 +170,23 @@ class StatusView(object):
|
||||||
self.remText.setText(remStr % stats)
|
self.remText.setText(remStr % stats)
|
||||||
stats['spaced'] = self.main.deck.spacedCardCount()
|
stats['spaced'] = self.main.deck.spacedCardCount()
|
||||||
stats['new2'] = self.main.deck.newCount
|
stats['new2'] = self.main.deck.newCount
|
||||||
self.remText.setToolTip(_(
|
self.remText.setToolTip("<h1>" +_(
|
||||||
"<h1>Remaining cards</h1>"
|
"Remaining cards") + "</h1><p/>" +
|
||||||
"<p/>There are <b>%(failed)d</b> failed cards due soon.<br>"
|
ngettext("There is <b>%d</b> failed card due soon.", \
|
||||||
"There are <b>%(rev)d</b> cards awaiting review.<br>"
|
"There are <b>%d</b> failed cards due soon.", \
|
||||||
"There are <b>%(new)d</b> new cards due today.<br><br>"
|
stats['failed']) % stats['failed'] + "<br>" +
|
||||||
"There are <b>%(new2)d</b> new cards in total.<br>"
|
ngettext("There is <b>%d</b> card awaiting review.",
|
||||||
"There are <b>%(spaced)d</b> delayed cards.") % stats)
|
"There are <b>%d</b> cards awaiting review.", \
|
||||||
|
stats['rev']) % stats['rev'] + "<br>" +
|
||||||
|
ngettext("There is <b>%d</b> new card due today.", \
|
||||||
|
"There are <b>%d</b> new cards due today.",\
|
||||||
|
stats['new']) % stats['new'] + "<br><br>" +
|
||||||
|
ngettext("There is <b>%d</b> new card in total.", \
|
||||||
|
"There are <b>%d</b> new cards in total.",\
|
||||||
|
stats['new2']) % stats['new2'] + "<br>" +
|
||||||
|
ngettext("There is <b>%d</b> delayed card.", \
|
||||||
|
"There are <b>%d</b> delayed cards.", \
|
||||||
|
stats['spaced']) % stats['spaced'])
|
||||||
# eta
|
# eta
|
||||||
self.etaText.setText(_("ETA: <b>%(timeLeft)s</b>") % stats)
|
self.etaText.setText(_("ETA: <b>%(timeLeft)s</b>") % stats)
|
||||||
# retention & progress bars
|
# retention & progress bars
|
||||||
|
|
Loading…
Reference in a new issue