From 008edbba286ff15b523f1bd06a063f3a3ec8d3dc Mon Sep 17 00:00:00 2001 From: OuOu2021 <1113117424@qq.com> Date: Sat, 14 Dec 2024 18:59:00 +0800 Subject: [PATCH] I18n: Improve i18n and multi-platform display of FSRS Simulator (#3611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improve i18n and multi-platform display of FSRS Simulator * Tweak the graph bounds to avoid overlapping of the y-axis tick values and the y-axis title * Update CONTRIBUTORS * I18n for 4 more strings * Reduce TitledContainer wrapper of fsrs simulator graph to maximize content display area * Clean unused variables * Update ftl/core/deck-config.ftl * Update ftl/core/deck-config.ftl --- ftl/core/deck-config.ftl | 6 ++++++ ts/routes/deck-options/FsrsOptions.svelte | 12 ++++++------ ts/routes/graphs/Graph.svelte | 16 +++++++++++++--- ts/routes/graphs/simulator.ts | 9 +++++++-- 4 files changed, 32 insertions(+), 11 deletions(-) diff --git a/ftl/core/deck-config.ftl b/ftl/core/deck-config.ftl index 15e87d776..f60ef72f9 100644 --- a/ftl/core/deck-config.ftl +++ b/ftl/core/deck-config.ftl @@ -461,6 +461,12 @@ deck-config-answer-hard = Answer Hard deck-config-answer-good = Answer Good deck-config-days-to-simulate = Days to simulate deck-config-desired-retention-below-optimal = Your desired retention is below optimal. Increasing it is recommended. +deck-config-fsrs-simulator-y-axis-title-time = Review Time/Day +deck-config-fsrs-simulator-y-axis-title-count = Review Count/Day +deck-config-fsrs-simulator-experimental = FSRS simulator (experimental) +deck-config-additional-new-cards-to-simulate = Additional new cards to simulate +deck-config-simulate = Simulate +deck-config-clear-last-simulate = Clear last simulation ## NO NEED TO TRANSLATE. This text is no longer used by Anki, and will be removed in the future. diff --git a/ts/routes/deck-options/FsrsOptions.svelte b/ts/routes/deck-options/FsrsOptions.svelte index 921187716..7a34d7ebe 100644 --- a/ts/routes/deck-options/FsrsOptions.svelte +++ b/ts/routes/deck-options/FsrsOptions.svelte @@ -293,8 +293,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html let tableData: TableDatum[] = [] as any; const bounds = defaultGraphBounds(); + bounds.marginLeft += 8; let svg = null as HTMLElement | SVGElement | null; - const title = tr.statisticsReviewsTitle(); let simulationNumber = 0; let points: Point[] = []; @@ -492,7 +492,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html