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 =
<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.
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

View file

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