add translations for deck option warnings
+ cap maximum recommended review limit to 9999, since we don't allow the user to set it higher
This commit is contained in:
parent
f6a1a35113
commit
09629e4e4a
@ -9,3 +9,18 @@ deck-config-default-name = Default
|
||||
deck-config-description-markdown = Enable markdown+clean HTML
|
||||
deck-config-description-markdown-hint = Will appear as text on Anki 2.1.40 and below.
|
||||
deck-config-title = Deck Options
|
||||
|
||||
## Warnings shown to the user
|
||||
|
||||
deck-config-daily-limit-will-be-capped =
|
||||
A parent deck has a limit of { $cards ->
|
||||
[one] { $cards } card
|
||||
*[other] { $cards } cards
|
||||
}, which will override this limit.
|
||||
deck-config-reviews-too-low =
|
||||
If adding { $cards ->
|
||||
[one] { $cards } new card each day
|
||||
*[other] { $cards } new cards each day
|
||||
}, your review limit should be at least { $expected }.
|
||||
deck-config-learning-step-above-graduating-interval = The graduating interval should be at least as long as your final learning step.
|
||||
deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval.
|
||||
|
@ -14,7 +14,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
$: newCardsGreaterThanParent =
|
||||
$config.newPerDay > $parentLimits.newCards
|
||||
? `Daily limit will be capped to parent limit of ${$parentLimits.newCards}.`
|
||||
? tr.deckConfigDailyLimitWillBeCapped({ cards: $parentLimits.newCards })
|
||||
: "";
|
||||
|
||||
// with the v2 scheduler, this no longer applies
|
||||
@ -24,12 +24,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
// : "";
|
||||
|
||||
$: reviewsTooLow =
|
||||
$config.newPerDay * 10 > $config.reviewsPerDay
|
||||
? `If adding ${
|
||||
$config.newPerDay
|
||||
} new cards each day, your review limit should be at least ${
|
||||
$config.newPerDay * 10
|
||||
}`
|
||||
Math.min(9999, $config.newPerDay * 10) > $config.reviewsPerDay
|
||||
? tr.deckConfigReviewsTooLow({
|
||||
cards: $config.newPerDay,
|
||||
expected: Math.min(9999, $config.newPerDay * 10),
|
||||
})
|
||||
: "";
|
||||
</script>
|
||||
|
||||
|
@ -27,13 +27,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
: 0;
|
||||
stepsExceedGraduatingInterval =
|
||||
lastLearnStepInDays > $config.graduatingIntervalGood
|
||||
? "Your last learning step is greater than the graduating interval."
|
||||
? tr.deckConfigLearningStepAboveGraduatingInterval()
|
||||
: "";
|
||||
}
|
||||
|
||||
$: goodExceedsEasy =
|
||||
$config.graduatingIntervalGood > $config.graduatingIntervalEasy
|
||||
? "The Good interval should not be larger than the Easy interval."
|
||||
? tr.deckConfigGoodAboveEasy()
|
||||
: "";
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user