Add translation strings

This commit is contained in:
Luc Mcgrady 2025-07-18 17:20:11 +01:00
parent 7608f3d35b
commit b59ff02f8d
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 14 additions and 5 deletions

View file

@ -506,6 +506,8 @@ deck-config-desired-retention-below-optimal = Your desired retention is below op
# diagram (Deck options -> FSRS) showing the total number of # diagram (Deck options -> FSRS) showing the total number of
# cards that can be recalled or retrieved on a specific date. # cards that can be recalled or retrieved on a specific date.
deck-config-fsrs-simulator-experimental = FSRS Simulator (Experimental) deck-config-fsrs-simulator-experimental = FSRS Simulator (Experimental)
deck-config-fsrs-simulate-desired-retention-experimental = FSRS Desired Retention Simulator
deck-config-fsrs-desired-retention-help-me-decide = Help Me Decide
deck-config-additional-new-cards-to-simulate = Additional new cards to simulate deck-config-additional-new-cards-to-simulate = Additional new cards to simulate
deck-config-simulate = Simulate deck-config-simulate = Simulate
deck-config-clear-last-simulate = Clear Last Simulation deck-config-clear-last-simulate = Clear Last Simulation
@ -515,10 +517,14 @@ deck-config-smooth-graph = Smooth graph
deck-config-suspend-leeches = Suspend leeches deck-config-suspend-leeches = Suspend leeches
deck-config-save-options-to-preset = Save Changes to Preset deck-config-save-options-to-preset = Save Changes to Preset
deck-config-save-options-to-preset-confirm = Overwrite the options in your current preset with the options that are currently set in the simulator? deck-config-save-options-to-preset-confirm = Overwrite the options in your current preset with the options that are currently set in the simulator?
deck-config-plotted-on-x-axis = (Plotted on the X-axis)
# Radio button in the FSRS simulation diagram (Deck options -> FSRS) selecting # Radio button in the FSRS simulation diagram (Deck options -> FSRS) selecting
# to show the total number of cards that can be recalled or retrieved on a # to show the total number of cards that can be recalled or retrieved on a
# specific date. # specific date.
deck-config-fsrs-simulator-radio-memorized = Memorized deck-config-fsrs-simulator-radio-memorized = Memorized
deck-config-fsrs-simulator-radio-ratio = Memorized / Time Ratio
# $time here is pre-formatted e.g. "10 Seconds"
deck-config-fsrs-simulator-ratio-tooltip = { $time } per memorized card
## Messages related to the FSRS schedulers health check. The health check determines whether the correlation between FSRS predictions and your memory is good or bad. It can be optionally triggered as part of the "Optimize" function. ## Messages related to the FSRS schedulers health check. The health check determines whether the correlation between FSRS predictions and your memory is good or bad. It can be optionally triggered as part of the "Optimize" function.

View file

@ -326,7 +326,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title"> <h5 class="modal-title">
{#if workload} {#if workload}
Desired Retention Simulation Graph {tr.deckConfigFsrsSimulateDesiredRetentionExperimental()}
{:else} {:else}
{tr.deckConfigFsrsSimulatorExperimental()} {tr.deckConfigFsrsSimulatorExperimental()}
{/if} {/if}
@ -383,7 +383,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<input <input
type="text" type="text"
disabled disabled
value="(Plotted on the X axis)" value={tr.deckConfigPlottedOnXAxis()}
/> />
</Col> </Col>
</Row> </Row>
@ -588,7 +588,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
value={SimulateWorkloadSubgraph.ratio} value={SimulateWorkloadSubgraph.ratio}
bind:group={simulateWorkloadSubgraph} bind:group={simulateWorkloadSubgraph}
/> />
{"Ratio"} {tr.deckConfigFsrsSimulatorRadioRatio()}
</label> </label>
<label> <label>
<input <input

View file

@ -65,11 +65,14 @@ export function renderWorkloadChart(
})[subgraph]; })[subgraph];
const yTickFormat = (n: number): string => { const yTickFormat = (n: number): string => {
return subgraph == SimulateWorkloadSubgraph.time ? timeSpan(n, true) : n.toString(); return subgraph == SimulateWorkloadSubgraph.time || subgraph == SimulateWorkloadSubgraph.ratio
? timeSpan(n, true)
: n.toString();
}; };
const formatY: (value: number) => string = ({ const formatY: (value: number) => string = ({
[SimulateWorkloadSubgraph.ratio]: (value: number) => `${timeSpan(value)} per memorized card`, [SimulateWorkloadSubgraph.ratio]: (value: number) =>
tr.deckConfigFsrsSimulatorRatioTooltip({ time: timeSpan(value) }),
[SimulateWorkloadSubgraph.time]: timeSpan, [SimulateWorkloadSubgraph.time]: timeSpan,
[SimulateWorkloadSubgraph.count]: (value: number) => tr.statisticsReviews({ reviews: Math.round(value) }), [SimulateWorkloadSubgraph.count]: (value: number) => tr.statisticsReviews({ reviews: Math.round(value) }),
[SimulateWorkloadSubgraph.memorized]: (value: number) => [SimulateWorkloadSubgraph.memorized]: (value: number) =>