i18n some sync errors

This commit is contained in:
Damien Elmes 2020-07-16 13:55:59 +10:00
parent 2824be25f0
commit 61017a2e21
2 changed files with 4 additions and 3 deletions

View file

@ -38,6 +38,8 @@ sync-password-label = Password:
sync-account-required = sync-account-required =
<h1>Account Required</h1> <h1>Account Required</h1>
A free account is required to keep your collection synchronized. Please <a href="{ $link }">sign up</a> for an account, then enter your details below. A free account is required to keep your collection synchronized. Please <a href="{ $link }">sign up</a> for an account, then enter your details below.
sync-sanity-check-failed = Please use the Check Database function, then sync again. If problems persist, please force a full sync in the preferences screen.
sync-clock-off = Unable to sync - your clock is not set to the correct time.
## Buttons ## Buttons

View file

@ -89,9 +89,8 @@ impl AnkiError {
SyncErrorKind::ClientTooOld => i18n.tr(TR::SyncClientTooOld), SyncErrorKind::ClientTooOld => i18n.tr(TR::SyncClientTooOld),
SyncErrorKind::AuthFailed => i18n.tr(TR::SyncWrongPass), SyncErrorKind::AuthFailed => i18n.tr(TR::SyncWrongPass),
SyncErrorKind::ResyncRequired => i18n.tr(TR::SyncResyncRequired), SyncErrorKind::ResyncRequired => i18n.tr(TR::SyncResyncRequired),
// fixme: i18n SyncErrorKind::ClockIncorrect => i18n.tr(TR::SyncClockOff),
SyncErrorKind::ClockIncorrect => "Please check your clock.".into(), SyncErrorKind::DatabaseCheckRequired => i18n.tr(TR::SyncSanityCheckFailed),
SyncErrorKind::DatabaseCheckRequired => "Please check the database.".into(),
} }
.into(), .into(),
AnkiError::NetworkError { kind, info } => { AnkiError::NetworkError { kind, info } => {