From 7664248550d49448dfe13073cc0f560814cfabda Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 8 Dec 2023 11:18:13 +1000 Subject: [PATCH] Add a globe icon to global icons Currently 80% of voters favor the globe, so I'm going to tentatively call it. https://forums.ankiweb.net/t/activating-fsrs-on-one-preset-activates-it-on-all-presets/36947/16 --- ftl/core/deck-config.ftl | 9 ++++++++- ts/deck-options/AdvancedOptions.svelte | 6 +++--- ts/deck-options/DailyLimits.svelte | 8 ++++++-- ts/deck-options/FsrsOptions.svelte | 2 +- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/ftl/core/deck-config.ftl b/ftl/core/deck-config.ftl index b21ba3016..c62117660 100644 --- a/ftl/core/deck-config.ftl +++ b/ftl/core/deck-config.ftl @@ -1,5 +1,8 @@ ### Text shown on the "Deck Options" screen +# Text added to an option name when it affects all decks at once, e.g. +# "FSRS 🌐" +deck-config-all-decks = { $option } 🌐 ## Top section @@ -358,6 +361,8 @@ deck-config-complete = { $num }% complete. deck-config-iterations = Iteration: { $count }... deck-config-reschedule-cards-on-change = Reschedule cards on change deck-config-fsrs-tooltip = + Affects the entire collection. + The Free Spaced Repetition Scheduler (FSRS) is an alternative to Anki's legacy SuperMemo 2 (SM2) scheduler. By more accurately determining when you are likely to forget, it can help you remember more material in the same amount of time. This setting is shared by all deck presets. @@ -381,10 +386,12 @@ deck-config-weights-tooltip = you've accumulated 1000+ reviews, you can use the option below to optimize the parameters to best match your performance in decks using this preset. deck-config-reschedule-cards-on-change-tooltip = + Affects the entire collection, and is not saved. + This option controls whether the due dates of cards will be changed when you enable FSRS, or optimize the parameters. The default is not to reschedule cards: future reviews will use the new scheduling, but there will be no immediate change to your workload. If rescheduling is enabled, the due dates of cards - will be changed. This option is shared by all deck presets, and not saved. + will be changed. deck-config-reschedule-cards-warning = Depending on your desired retention, this can result in a large number of cards becoming due, so is not recommended when first switching from SM2. diff --git a/ts/deck-options/AdvancedOptions.svelte b/ts/deck-options/AdvancedOptions.svelte index 6945dc810..93e18b454 100644 --- a/ts/deck-options/AdvancedOptions.svelte +++ b/ts/deck-options/AdvancedOptions.svelte @@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const settings = { fsrs: { - title: "FSRS", + title: tr.deckConfigAllDecks({ option: "FSRS" }), help: tr.deckConfigFsrsTooltip(), url: HelpPage.DeckOptions.fsrs, }, @@ -102,7 +102,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html sched: HelpItemScheduler.SM2, }, customScheduling: { - title: tr.deckConfigCustomScheduling(), + title: tr.deckConfigAllDecks({ option: tr.deckConfigCustomScheduling() }), help: tr.deckConfigCustomSchedulingTooltip(), url: "https://faqs.ankiweb.net/the-2021-scheduler.html#add-ons-and-custom-scheduling", }, @@ -139,7 +139,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html on:click={() => openHelpModal(Object.keys(settings).indexOf("fsrs"))} > - FSRS + {settings.fsrs.title} diff --git a/ts/deck-options/DailyLimits.svelte b/ts/deck-options/DailyLimits.svelte index 9bfd260bd..4f7657785 100644 --- a/ts/deck-options/DailyLimits.svelte +++ b/ts/deck-options/DailyLimits.svelte @@ -130,12 +130,16 @@ url: HelpPage.DeckOptions.maximumReviewsday, }, newCardsIgnoreReviewLimit: { - title: tr.deckConfigNewCardsIgnoreReviewLimit(), + title: tr.deckConfigAllDecks({ + option: tr.deckConfigNewCardsIgnoreReviewLimit(), + }), help: newCardsIgnoreReviewLimitHelp, url: HelpPage.DeckOptions.newCardsday, }, applyAllParentLimits: { - title: tr.deckConfigApplyAllParentLimits(), + title: tr.deckConfigAllDecks({ + option: tr.deckConfigApplyAllParentLimits(), + }), help: applyAllParentLimitsHelp, url: HelpPage.DeckOptions.newCardsday, }, diff --git a/ts/deck-options/FsrsOptions.svelte b/ts/deck-options/FsrsOptions.svelte index 8bb31a720..d251c9deb 100644 --- a/ts/deck-options/FsrsOptions.svelte +++ b/ts/deck-options/FsrsOptions.svelte @@ -267,7 +267,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
openHelpModal("rescheduleCardsOnChange")}> - {tr.deckConfigRescheduleCardsOnChange()} + {tr.deckConfigAllDecks({ option: tr.deckConfigRescheduleCardsOnChange() })}