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
This commit is contained in:
Damien Elmes 2023-12-08 11:18:13 +10:00
parent e778cba089
commit 7664248550
4 changed files with 18 additions and 7 deletions

View File

@ -1,5 +1,8 @@
### Text shown on the "Deck Options" screen ### 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 ## Top section
@ -358,6 +361,8 @@ deck-config-complete = { $num }% complete.
deck-config-iterations = Iteration: { $count }... deck-config-iterations = Iteration: { $count }...
deck-config-reschedule-cards-on-change = Reschedule cards on change deck-config-reschedule-cards-on-change = Reschedule cards on change
deck-config-fsrs-tooltip = 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. 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 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. 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 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. match your performance in decks using this preset.
deck-config-reschedule-cards-on-change-tooltip = 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 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 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 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 = deck-config-reschedule-cards-warning =
Depending on your desired retention, this can result in a large number of cards becoming 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. due, so is not recommended when first switching from SM2.

View File

@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const settings = { const settings = {
fsrs: { fsrs: {
title: "FSRS", title: tr.deckConfigAllDecks({ option: "FSRS" }),
help: tr.deckConfigFsrsTooltip(), help: tr.deckConfigFsrsTooltip(),
url: HelpPage.DeckOptions.fsrs, 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, sched: HelpItemScheduler.SM2,
}, },
customScheduling: { customScheduling: {
title: tr.deckConfigCustomScheduling(), title: tr.deckConfigAllDecks({ option: tr.deckConfigCustomScheduling() }),
help: tr.deckConfigCustomSchedulingTooltip(), help: tr.deckConfigCustomSchedulingTooltip(),
url: "https://faqs.ankiweb.net/the-2021-scheduler.html#add-ons-and-custom-scheduling", 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={() => on:click={() =>
openHelpModal(Object.keys(settings).indexOf("fsrs"))} openHelpModal(Object.keys(settings).indexOf("fsrs"))}
> >
FSRS {settings.fsrs.title}
</SettingTitle> </SettingTitle>
</SwitchRow> </SwitchRow>
</Item> </Item>

View File

@ -130,12 +130,16 @@
url: HelpPage.DeckOptions.maximumReviewsday, url: HelpPage.DeckOptions.maximumReviewsday,
}, },
newCardsIgnoreReviewLimit: { newCardsIgnoreReviewLimit: {
title: tr.deckConfigNewCardsIgnoreReviewLimit(), title: tr.deckConfigAllDecks({
option: tr.deckConfigNewCardsIgnoreReviewLimit(),
}),
help: newCardsIgnoreReviewLimitHelp, help: newCardsIgnoreReviewLimitHelp,
url: HelpPage.DeckOptions.newCardsday, url: HelpPage.DeckOptions.newCardsday,
}, },
applyAllParentLimits: { applyAllParentLimits: {
title: tr.deckConfigApplyAllParentLimits(), title: tr.deckConfigAllDecks({
option: tr.deckConfigApplyAllParentLimits(),
}),
help: applyAllParentLimitsHelp, help: applyAllParentLimitsHelp,
url: HelpPage.DeckOptions.newCardsday, url: HelpPage.DeckOptions.newCardsday,
}, },

View File

@ -267,7 +267,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div class="m-2"> <div class="m-2">
<SwitchRow bind:value={$fsrsReschedule} defaultValue={false}> <SwitchRow bind:value={$fsrsReschedule} defaultValue={false}>
<SettingTitle on:click={() => openHelpModal("rescheduleCardsOnChange")}> <SettingTitle on:click={() => openHelpModal("rescheduleCardsOnChange")}>
{tr.deckConfigRescheduleCardsOnChange()} {tr.deckConfigAllDecks({ option: tr.deckConfigRescheduleCardsOnChange() })}
</SettingTitle> </SettingTitle>
</SwitchRow> </SwitchRow>