From e0951e4cfe4b0b45e21998bc0be14c61fc92472e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 18 Feb 2020 11:16:15 +1000 Subject: [PATCH] add 'new #' prefix to new cards in the due column --- qt/aqt/browser.py | 2 +- rslib/src/i18n/statistics.ftl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index a7265b724..301683d95 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -356,7 +356,7 @@ class DataModel(QAbstractTableModel): elif c.queue == QUEUE_TYPE_LRN: date = c.due elif c.queue == QUEUE_TYPE_NEW or c.type == CARD_TYPE_NEW: - return str(c.due) + return tr(StringsGroup.STATISTICS, "due-for-new-card", number=c.due) elif c.queue in (QUEUE_TYPE_REV, QUEUE_TYPE_DAY_LEARN_RELEARN) or ( c.type == CARD_TYPE_REV and c.queue < 0 ): diff --git a/rslib/src/i18n/statistics.ftl b/rslib/src/i18n/statistics.ftl index 503bbf61d..b5edbfacf 100644 --- a/rslib/src/i18n/statistics.ftl +++ b/rslib/src/i18n/statistics.ftl @@ -2,3 +2,5 @@ due-date = Due # The count of cards waiting to be reviewed due-count = Due +# Shown in the Due column of the Browse screen when the card is a new card +due-for-new-card = New #{$number}