From 61017a2e215d184cdc03eab43fa915980e95736c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jul 2020 13:55:59 +1000 Subject: [PATCH] i18n some sync errors --- rslib/ftl/sync.ftl | 2 ++ rslib/src/err.rs | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rslib/ftl/sync.ftl b/rslib/ftl/sync.ftl index 3fc0a4bfe..682e55a7d 100644 --- a/rslib/ftl/sync.ftl +++ b/rslib/ftl/sync.ftl @@ -38,6 +38,8 @@ sync-password-label = Password: sync-account-required =

Account Required

A free account is required to keep your collection synchronized. Please sign up 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 diff --git a/rslib/src/err.rs b/rslib/src/err.rs index caee450c5..fe243278e 100644 --- a/rslib/src/err.rs +++ b/rslib/src/err.rs @@ -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 } => {