diff --git a/anki/deck.py b/anki/deck.py index d2a20db66..61c50aa06 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -648,7 +648,7 @@ At the same time tomorrow:

"There will be %s reviews.", cards) % cards, } if next - time.time() > 86400 and not newCardsTomorrow: - msg = (_("The next card will be shown in %s.") % + msg = (_("The next review is in %s.") % self.earliestTimeStr()) else: msg = _("No cards are due.") @@ -679,27 +679,21 @@ select count(id) from cards where combinedDue < :time and priority in (1,2,3,4) and type in (0, 1)""", time=time) def deckFinishedMsg(self): + self.resetAfterReviewEarly() spaceSusp = "" c = self.spacedCardCount() - if c and self.newCountToday: - spaceSusp += ngettext(''' -There is %d - -spaced card.''', ''' -There are %d - -spaced cards.''', c) % c + newLeft = self.newCardsPerDay - self.newCardsToday() + if c and newLeft: + spaceSusp += ngettext('There is %d spaced card.', + 'There are %d spaced cards.', + c) % c c2 = self.suspendedCardCount() if c2: if c: spaceSusp += "
" - spaceSusp += ngettext(''' -There is %d - -suspended card.''', ''' -There are %d - -suspended cards.''', c) % c2 + spaceSusp += ngettext('There is %d suspended card.', + 'There are %d suspended cards.', + c) % c2 if spaceSusp: spaceSusp = "

" + spaceSusp return _('''\