Localize FSRS error message and update contributors (#4342)

Co-authored-by: Amanda Sternberg <mandis.sternberg@gmail.com>
This commit is contained in:
AmandaSternberg-creator 2025-10-02 16:52:49 +02:00 committed by GitHub
parent 1ba4512011
commit 1f9d943c8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 8 deletions

View file

@ -248,6 +248,7 @@ Elias Johansson Lara <elias.johanssonlara@gmail.com>
Toby Penner <tobypenner01@gmail.com> Toby Penner <tobypenner01@gmail.com>
Danilo Spillebeen <spillebeendanilo@gmail.com> Danilo Spillebeen <spillebeendanilo@gmail.com>
Matbe766 <matildabergstrom01@gmail.com> Matbe766 <matildabergstrom01@gmail.com>
Amanda Sternberg <mandis.sternberg@gmail.com>
******************** ********************

View file

@ -382,7 +382,7 @@ deck-config-which-deck = Which deck would you like to display options for?
## Messages related to the FSRS scheduler ## Messages related to the FSRS scheduler
deck-config-updating-cards = Updating cards: { $current_cards_count }/{ $total_cards_count }... deck-config-updating-cards = Updating cards: { $current_cards_count }/{ $total_cards_count }...
deck-config-invalid-parameters = The provided FSRS parameters are invalid. Leave them blank to use the default parameters. deck-config-invalid-parameters = The provided FSRS parameters are invalid. Leave them blank to use the default values.
deck-config-not-enough-history = Insufficient review history to perform this operation. deck-config-not-enough-history = Insufficient review history to perform this operation.
deck-config-must-have-400-reviews = deck-config-must-have-400-reviews =
{ $count -> { $count ->

View file

@ -13,13 +13,7 @@ impl From<FSRSError> for AnkiError {
FSRSError::OptimalNotFound => AnkiError::FsrsUnableToDetermineDesiredRetention, FSRSError::OptimalNotFound => AnkiError::FsrsUnableToDetermineDesiredRetention,
FSRSError::Interrupted => AnkiError::Interrupted, FSRSError::Interrupted => AnkiError::Interrupted,
FSRSError::InvalidParameters => AnkiError::FsrsParamsInvalid, FSRSError::InvalidParameters => AnkiError::FsrsParamsInvalid,
FSRSError::InvalidInput => AnkiError::InvalidInput { FSRSError::InvalidInput => AnkiError::FsrsParamsInvalid,
source: InvalidInputError {
message: "invalid params provided".to_string(),
source: None,
backtrace: None,
},
},
FSRSError::InvalidDeckSize => AnkiError::InvalidInput { FSRSError::InvalidDeckSize => AnkiError::InvalidInput {
source: InvalidInputError { source: InvalidInputError {
message: "no cards to simulate".to_string(), message: "no cards to simulate".to_string(),