From 9d17d431245d24a3d4e042f93ff0df3e28b2bf29 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 18 Dec 2020 10:11:42 +1000 Subject: [PATCH] avoid using literal 1 in English translations It confuses translators: https://forums.ankiweb.net/t/bug-in-review-intervals-for-some-languages-in-number-of-cards/5744/8 --- ftl/core/deck-config.ftl | 2 +- ftl/core/media-check.ftl | 6 +++--- ftl/core/statistics.ftl | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ftl/core/deck-config.ftl b/ftl/core/deck-config.ftl index 077e52b6b..868a8fdb8 100644 --- a/ftl/core/deck-config.ftl +++ b/ftl/core/deck-config.ftl @@ -2,7 +2,7 @@ # by a particular configuration group, eg "Group1 (used by 3 decks)" deck-config-used-by-decks = used by { $decks -> - [one] 1 deck + [one] { $decks } deck *[other] { $decks } decks } deck-config-default-name = Default diff --git a/ftl/core/media-check.ftl b/ftl/core/media-check.ftl index af6f9458d..d4a0dd9c5 100644 --- a/ftl/core/media-check.ftl +++ b/ftl/core/media-check.ftl @@ -6,7 +6,7 @@ media-check-window-title = Check Media # "Trash folder: 3 files, 3.47MB" media-check-trash-count = Trash folder: { $count -> - [one] 1 file, { $megs }MB + [one] { $count } file, { $megs }MB *[other] { $count } files, { $megs }MB } media-check-missing-count = Missing files: { $count } @@ -40,12 +40,12 @@ media-check-checked = Checked { $count }... media-check-delete-unused-confirm = Delete unused media? media-check-files-remaining = { $count -> - [one] 1 file + [one] { $count } file *[other] { $count } files } remaining. media-check-delete-unused-complete = { $count -> - [one] 1 file + [one] { $count } file *[other] { $count } files } moved to the trash. media-check-trash-emptied = The trash folder is now empty. diff --git a/ftl/core/statistics.ftl b/ftl/core/statistics.ftl index e0d2fb63d..685bcabe6 100644 --- a/ftl/core/statistics.ftl +++ b/ftl/core/statistics.ftl @@ -51,7 +51,7 @@ statistics-cards = # a count of how many cards have been answered, eg "Total: 34 reviews" statistics-reviews = { $reviews -> - [one] 1 review + [one] { $reviews } review *[other] { $reviews } reviews } # Shown at the bottom of the deck list, and in the statistics screen. @@ -98,7 +98,7 @@ statistics-card-ease-subtitle = The lower the ease, the more frequently a card w # eg "3 cards with 150-170% ease" statistics-card-ease-tooltip = { $cards -> - [one] 1 card with { $percent } ease + [one] { $cards } card with { $percent } ease *[other] { $cards } cards with { $percent } ease } statistics-future-due-title = Future Due @@ -131,7 +131,7 @@ statistics-days-ago-range = { $daysStart }-{ $daysEnd } days ago statistics-running-total = Running total statistics-cards-due = { $cards -> - [one] 1 card due + [one] { $cards } card due *[other] { $cards } cards due } statistics-backlog-checkbox = Backlog @@ -139,12 +139,12 @@ statistics-intervals-title = Review Intervals statistics-intervals-subtitle = Delays until reviews are shown again. statistics-intervals-day-range = { $cards -> - [one] 1 card with a { $daysStart }~{ $daysEnd } day interval + [one] { $cards } card with a { $daysStart }~{ $daysEnd } day interval *[other] { $cards } cards with a { $daysStart }~{ $daysEnd } day interval } statistics-intervals-day-single = { $cards -> - [one] 1 card with a { $day } day interval + [one] { $cards } card with a { $day } day interval *[other] { $cards } cards with a { $day } day interval } # hour range, eg "From 14:00-15:00"