From 55370fcf2112e588cfcb1b736c38a0e9098767c8 Mon Sep 17 00:00:00 2001
From: Matthew Fosse <matt@fosse.co>
Date: Fri, 22 Mar 2024 11:15:53 -0700
Subject: [PATCH] add background sync warning

---
 lib/src/screens/settings/connection_sync_page.dart | 14 ++++++++++++++
 res/values/strings_ar.arb                          |  1 +
 res/values/strings_bg.arb                          |  1 +
 res/values/strings_cs.arb                          |  1 +
 res/values/strings_de.arb                          |  1 +
 res/values/strings_en.arb                          |  1 +
 res/values/strings_es.arb                          |  1 +
 res/values/strings_fr.arb                          |  1 +
 res/values/strings_ha.arb                          |  1 +
 res/values/strings_hi.arb                          |  1 +
 res/values/strings_hr.arb                          |  1 +
 res/values/strings_id.arb                          |  1 +
 res/values/strings_it.arb                          |  1 +
 res/values/strings_ja.arb                          |  1 +
 res/values/strings_ko.arb                          |  1 +
 res/values/strings_my.arb                          |  1 +
 res/values/strings_nl.arb                          |  1 +
 res/values/strings_pl.arb                          |  1 +
 res/values/strings_pt.arb                          |  1 +
 res/values/strings_ru.arb                          |  1 +
 res/values/strings_th.arb                          |  1 +
 res/values/strings_tl.arb                          |  1 +
 res/values/strings_tr.arb                          |  1 +
 res/values/strings_uk.arb                          |  1 +
 res/values/strings_ur.arb                          |  1 +
 res/values/strings_yo.arb                          |  1 +
 res/values/strings_zh.arb                          |  1 +
 27 files changed, 40 insertions(+)

diff --git a/lib/src/screens/settings/connection_sync_page.dart b/lib/src/screens/settings/connection_sync_page.dart
index 35bdc2fd4..2da0be29e 100644
--- a/lib/src/screens/settings/connection_sync_page.dart
+++ b/lib/src/screens/settings/connection_sync_page.dart
@@ -58,6 +58,20 @@ class ConnectionSyncPage extends BasePage {
                     onItemSelected: (syncMode) async {
                       dashboardViewModel.setSyncMode(syncMode);
 
+                      if (syncMode.type != SyncType.disabled) {
+                        await showPopUp<void>(
+                          context: context,
+                          builder: (BuildContext dialogContext) {
+                            return AlertWithOneAction(
+                              alertTitle: S.current.warning,
+                              alertContent: S.current.sync_enabled_warning,
+                              buttonText: S.of(context).ok,
+                              buttonAction: () => Navigator.of(dialogContext).pop(),
+                            );
+                          },
+                        );
+                      }
+
                       if (Platform.isIOS) return;
 
                       if (syncMode.type != SyncType.disabled) {
diff --git a/res/values/strings_ar.arb b/res/values/strings_ar.arb
index 37e7118f1..afb27cf83 100644
--- a/res/values/strings_ar.arb
+++ b/res/values/strings_ar.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "  (Ethereum، Polygon) ﻯﺮﺧﺃ ﺓﺮﻣ ﺔﻟﻭﺎﺤﻤﻟﺍﻭ EVM ﻊﻣ ﺔﻘﻓﺍﻮﺘﻣ ﺔﻈﻔﺤﻣ ﻰﻟﺇ ﻞﻳﺪﺒﺘﻟﺍ ﻰﺟﺮﻳ",
   "symbol": "ﺰﻣﺭ",
   "sync_all_wallets": "مزامنة جميع المحافظ",
+  "sync_enabled_warning": "يرجى ملاحظة أن مزامنة الخلفية لا تزال تجريبية",
   "sync_status_attempting_sync": "جاري محاولة المزامنة",
   "sync_status_connected": "متصل",
   "sync_status_connecting": "يتم التوصيل",
diff --git a/res/values/strings_bg.arb b/res/values/strings_bg.arb
index eafe9045b..2abaab0f7 100644
--- a/res/values/strings_bg.arb
+++ b/res/values/strings_bg.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Моля, превключете към портфейл, съвместим с EVM, и опитайте отново (Ethereum, Polygon)",
   "symbol": "Символ",
   "sync_all_wallets": "Синхронизирайте всички портфейли",
+  "sync_enabled_warning": "Моля, обърнете внимание, че синхронизирането на фона все още е експериментално",
   "sync_status_attempting_sync": "ОПИТ ЗА СИНХРОНИЗАЦИЯ",
   "sync_status_connected": "СВЪРЗВАНЕ",
   "sync_status_connecting": "СВЪРЗВАНЕ",
diff --git a/res/values/strings_cs.arb b/res/values/strings_cs.arb
index 1f0320d70..148dca6a1 100644
--- a/res/values/strings_cs.arb
+++ b/res/values/strings_cs.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Přepněte na peněženku kompatibilní s EVM a zkuste to znovu (Ethereum, Polygon)",
   "symbol": "Symbol",
   "sync_all_wallets": "Synchronizovat všechny peněženky",
+  "sync_enabled_warning": "Vezměte prosím na vědomí, že synchronizace pozadí je stále experimentální",
   "sync_status_attempting_sync": "ZAHAJUJI SYNCHR.",
   "sync_status_connected": "PŘIPOJENO",
   "sync_status_connecting": "PŘIPOJOVÁNÍ",
diff --git a/res/values/strings_de.arb b/res/values/strings_de.arb
index 70378a854..87bad0e10 100644
--- a/res/values/strings_de.arb
+++ b/res/values/strings_de.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "Bitte wechseln Sie zu einem EVM-kompatiblen Wallet und versuchen Sie es erneut (Ethereum, Polygon)",
   "symbol": "Symbol",
   "sync_all_wallets": "Alle Wallets synchronisieren",
+  "sync_enabled_warning": "Bitte beachten Sie, dass die Hintergrundsynchronisierung noch experimentell ist",
   "sync_status_attempting_sync": "SYNC VERSUCHEN",
   "sync_status_connected": "VERBUNDEN",
   "sync_status_connecting": "VERBINDEN",
diff --git a/res/values/strings_en.arb b/res/values/strings_en.arb
index 19de9db82..bbdad76e9 100644
--- a/res/values/strings_en.arb
+++ b/res/values/strings_en.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Please switch to an EVM compatible wallet and try again (Ethereum, Polygon)",
   "symbol": "Symbol",
   "sync_all_wallets": "Sync all wallets",
+  "sync_enabled_warning": "Please note that background sync is still experimental",
   "sync_status_attempting_sync": "ATTEMPTING SYNC",
   "sync_status_connected": "CONNECTED",
   "sync_status_connecting": "CONNECTING",
diff --git a/res/values/strings_es.arb b/res/values/strings_es.arb
index aaeb2a745..55c9df07c 100644
--- a/res/values/strings_es.arb
+++ b/res/values/strings_es.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "Cambie a una billetera compatible con EVM e inténtelo nuevamente (Ethereum, Polygon)",
   "symbol": "Símbolo",
   "sync_all_wallets": "Sincronizar todas las billeteras",
+  "sync_enabled_warning": "Tenga en cuenta que la sincronización de fondo sigue siendo experimental",
   "sync_status_attempting_sync": "INTENTAR SINCRONIZAR",
   "sync_status_connected": "CONECTADO",
   "sync_status_connecting": "CONECTANDO",
diff --git a/res/values/strings_fr.arb b/res/values/strings_fr.arb
index 4c0c67955..aa2148717 100644
--- a/res/values/strings_fr.arb
+++ b/res/values/strings_fr.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Veuillez passer à un portefeuille compatible EVM et réessayer (Ethereum, Polygon)",
   "symbol": "Symbole",
   "sync_all_wallets": "Synchroniser tous les portefeuilles",
+  "sync_enabled_warning": "Veuillez noter que la synchronisation des antécédents est toujours expérimentale",
   "sync_status_attempting_sync": "TENTATIVE DE SYNCHRONISATION",
   "sync_status_connected": "CONNECTÉ",
   "sync_status_connecting": "CONNEXION EN COURS",
diff --git a/res/values/strings_ha.arb b/res/values/strings_ha.arb
index 21c984bfc..ebdec5000 100644
--- a/res/values/strings_ha.arb
+++ b/res/values/strings_ha.arb
@@ -634,6 +634,7 @@
   "switchToEVMCompatibleWallet": "Da fatan za a canza zuwa walat ɗin EVM mai jituwa kuma a sake gwadawa (Ethereum, Polygon)",
   "symbol": "Alama",
   "sync_all_wallets": "Sync Duk Wallet",
+  "sync_enabled_warning": "Lura cewa Sync Tasirin Bango har yanzu yana gwaji",
   "sync_status_attempting_sync": "KWAFI",
   "sync_status_connected": "HANNU",
   "sync_status_connecting": "HADA",
diff --git a/res/values/strings_hi.arb b/res/values/strings_hi.arb
index 394a1a86d..528fca942 100644
--- a/res/values/strings_hi.arb
+++ b/res/values/strings_hi.arb
@@ -634,6 +634,7 @@
   "switchToEVMCompatibleWallet": "कृपया ईवीएम संगत वॉलेट पर स्विच करें और पुनः प्रयास करें (एथेरियम, पॉलीगॉन)",
   "symbol": "प्रतीक",
   "sync_all_wallets": "सभी वॉलेट सिंक करें",
+  "sync_enabled_warning": "कृपया ध्यान दें कि पृष्ठभूमि सिंक अभी भी प्रयोगात्मक है",
   "sync_status_attempting_sync": "सिंक करने का प्रयास",
   "sync_status_connected": "जुड़े हुए",
   "sync_status_connecting": "कनेक्ट",
diff --git a/res/values/strings_hr.arb b/res/values/strings_hr.arb
index 882106b67..11abde884 100644
--- a/res/values/strings_hr.arb
+++ b/res/values/strings_hr.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Prijeđite na novčanik kompatibilan s EVM-om i pokušajte ponovno (Ethereum, Polygon)",
   "symbol": "Simbol",
   "sync_all_wallets": "Sinkronizirajte sve novčanike",
+  "sync_enabled_warning": "Imajte na umu da je pozadinska sinkronizacija još uvijek eksperimentalna",
   "sync_status_attempting_sync": "POKUŠAJ SINKRONIZACIJE",
   "sync_status_connected": "SPOJENO",
   "sync_status_connecting": "SPAJANJE",
diff --git a/res/values/strings_id.arb b/res/values/strings_id.arb
index 88354cd0b..742324eae 100644
--- a/res/values/strings_id.arb
+++ b/res/values/strings_id.arb
@@ -635,6 +635,7 @@
   "switchToEVMCompatibleWallet": "Silakan beralih ke dompet yang kompatibel dengan EVM dan coba lagi (Ethereum, Polygon)",
   "symbol": "Simbol",
   "sync_all_wallets": "Sinkronkan semua dompet",
+  "sync_enabled_warning": "Harap dicatat bahwa sinkronisasi latar belakang masih eksperimental",
   "sync_status_attempting_sync": "MENCOBA SINKRONISASI",
   "sync_status_connected": "TERHUBUNG",
   "sync_status_connecting": "MENGHUBUNGKAN",
diff --git a/res/values/strings_it.arb b/res/values/strings_it.arb
index b93bf0d43..9fe34f02e 100644
--- a/res/values/strings_it.arb
+++ b/res/values/strings_it.arb
@@ -634,6 +634,7 @@
   "switchToEVMCompatibleWallet": "Passa a un portafoglio compatibile con EVM e riprova (Ethereum, Polygon)",
   "symbol": "Simbolo",
   "sync_all_wallets": "Sincronizza tutti i portafogli",
+  "sync_enabled_warning": "Si prega di notare che la sincronizzazione in background è ancora sperimentale",
   "sync_status_attempting_sync": "TENTATIVO DI SINCRONIZZAZIONE",
   "sync_status_connected": "CONNESSO",
   "sync_status_connecting": "CONNESSIONE",
diff --git a/res/values/strings_ja.arb b/res/values/strings_ja.arb
index b03d7b1a8..edbcebb28 100644
--- a/res/values/strings_ja.arb
+++ b/res/values/strings_ja.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "EVM 互換のウォレットに切り替えて再試行してください (イーサリアム、ポリゴン)",
   "symbol": "シンボル",
   "sync_all_wallets": "すべてのウォレットを同期",
+  "sync_enabled_warning": "バックグラウンドの同期はまだ実験的であることに注意してください",
   "sync_status_attempting_sync": "同期を試みています",
   "sync_status_connected": "接続済み",
   "sync_status_connecting": "接続中",
diff --git a/res/values/strings_ko.arb b/res/values/strings_ko.arb
index d246e5e57..f0ff6ca2a 100644
--- a/res/values/strings_ko.arb
+++ b/res/values/strings_ko.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "EVM 호환 지갑으로 전환 후 다시 시도해 주세요. (이더리움, 폴리곤)",
   "symbol": "상징",
   "sync_all_wallets": "모든 지갑 동기화",
+  "sync_enabled_warning": "배경 동기화는 여전히 실험적입니다",
   "sync_status_attempting_sync": "동기화 시도 중",
   "sync_status_connected": "연결됨",
   "sync_status_connecting": "연결 중",
diff --git a/res/values/strings_my.arb b/res/values/strings_my.arb
index 2c2a89f96..b50180022 100644
--- a/res/values/strings_my.arb
+++ b/res/values/strings_my.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "ကျေးဇူးပြု၍ EVM တွဲဖက်သုံးနိုင်သော ပိုက်ဆံအိတ်သို့ ပြောင်းပြီး ထပ်စမ်းကြည့်ပါ (Ethereum၊ Polygon)",
   "symbol": "သင်္ကေတ",
   "sync_all_wallets": "အားလုံးပိုက်ဆံအိတ်စည်းညှိ",
+  "sync_enabled_warning": "ကျေးဇူးပြု. မှတ်သားပါ။ နောက်ခံထပ်တူပြုလုပ်ခြင်းသည်စမ်းသပ်နေဆဲဖြစ်သည်ကိုသတိပြုပါ",
   "sync_status_attempting_sync": "ချိန်ကိုက်ခြင်းကို ကြိုးစားနေသည်။",
   "sync_status_connected": "ချိတ်ဆက်ထားသည်။",
   "sync_status_connecting": "ချိတ်ဆက်ခြင်း။",
diff --git a/res/values/strings_nl.arb b/res/values/strings_nl.arb
index 63998a2a0..cd80f3f9e 100644
--- a/res/values/strings_nl.arb
+++ b/res/values/strings_nl.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Schakel over naar een EVM-compatibele portemonnee en probeer het opnieuw (Ethereum, Polygon)",
   "symbol": "Symbool",
   "sync_all_wallets": "Alle portemonnees synchroniseren",
+  "sync_enabled_warning": "Houd er rekening mee dat achtergrondsynchronisatie nog steeds experimenteel is",
   "sync_status_attempting_sync": "SYNCHRONISATIE PROBEREN",
   "sync_status_connected": "VERBONDEN",
   "sync_status_connecting": "AANSLUITING",
diff --git a/res/values/strings_pl.arb b/res/values/strings_pl.arb
index 241dd1a0c..6158810c2 100644
--- a/res/values/strings_pl.arb
+++ b/res/values/strings_pl.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Przejdź na portfel zgodny z EVM i spróbuj ponownie (Ethereum, Polygon)",
   "symbol": "Symbol",
   "sync_all_wallets": "Synchronizuj wszystkie portfele",
+  "sync_enabled_warning": "Należy pamiętać, że synchronizacja tła jest nadal eksperymentalna",
   "sync_status_attempting_sync": "PRÓBA SYNCHRONIZACJI",
   "sync_status_connected": "POŁĄCZONY",
   "sync_status_connecting": "ŁĄCZENIE",
diff --git a/res/values/strings_pt.arb b/res/values/strings_pt.arb
index 2cefd6cac..86b85a15e 100644
--- a/res/values/strings_pt.arb
+++ b/res/values/strings_pt.arb
@@ -634,6 +634,7 @@
   "switchToEVMCompatibleWallet": "Mude para uma carteira compatível com EVM e tente novamente (Ethereum, Polygon)",
   "symbol": "Símbolo",
   "sync_all_wallets": "Sincronize todas as carteiras",
+  "sync_enabled_warning": "Observe que a sincronização de fundo ainda é experimental",
   "sync_status_attempting_sync": "TENTANDO SINCRONIZAR",
   "sync_status_connected": "CONECTADO",
   "sync_status_connecting": "CONECTANDO",
diff --git a/res/values/strings_ru.arb b/res/values/strings_ru.arb
index b92767150..9ff319df8 100644
--- a/res/values/strings_ru.arb
+++ b/res/values/strings_ru.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "Пожалуйста, переключитесь на кошелек, совместимый с EVM, и повторите попытку (Ethereum, Polygon).",
   "symbol": "Символ",
   "sync_all_wallets": "Синхронизировать все кошельки",
+  "sync_enabled_warning": "Обратите внимание, что фоновая синхронизация все еще экспериментальна",
   "sync_status_attempting_sync": "ПОПЫТКА СИНХРОНИЗАЦИИ",
   "sync_status_connected": "ПОДКЛЮЧЕНО",
   "sync_status_connecting": "ПОДКЛЮЧЕНИЕ",
diff --git a/res/values/strings_th.arb b/res/values/strings_th.arb
index 8e98a190d..94d8ab284 100644
--- a/res/values/strings_th.arb
+++ b/res/values/strings_th.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "โปรดเปลี่ยนไปใช้กระเป๋าเงินที่รองรับ EVM แล้วลองอีกครั้ง (Ethereum, Polygon)",
   "symbol": "เครื่องหมาย",
   "sync_all_wallets": "ซิงค์กระเป๋าเงินทั้งหมด",
+  "sync_enabled_warning": "โปรดทราบว่าการซิงค์พื้นหลังยังคงทดลอง",
   "sync_status_attempting_sync": "พยายามซิงโครไนซ์",
   "sync_status_connected": "เชื่อมต่อแล้ว",
   "sync_status_connecting": "กำลังเชื่อมต่อ",
diff --git a/res/values/strings_tl.arb b/res/values/strings_tl.arb
index 8b465a395..2ba60fe47 100644
--- a/res/values/strings_tl.arb
+++ b/res/values/strings_tl.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Mangyaring lumipat sa isang EVM compatible na wallet at subukang muli (Ethereum, Polygon)",
   "symbol": "Simbolo",
   "sync_all_wallets": "I -sync ang lahat ng mga pitaka",
+  "sync_enabled_warning": "Mangyaring tandaan na ang pag -sync ng background ay eksperimentong pa rin",
   "sync_status_attempting_sync": "Pagtatangka ng pag -sync",
   "sync_status_connected": "Konektado",
   "sync_status_connecting": "Pagkonekta",
diff --git a/res/values/strings_tr.arb b/res/values/strings_tr.arb
index 4fb4dfebe..46fbcfbe6 100644
--- a/res/values/strings_tr.arb
+++ b/res/values/strings_tr.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "Lütfen EVM uyumlu bir cüzdana geçin ve tekrar deneyin (Ethereum, Polygon)",
   "symbol": "Sembol",
   "sync_all_wallets": "Tüm cüzdanları senkronize edin",
+  "sync_enabled_warning": "Arka plan senkronizasyonunun hala deneysel olduğunu lütfen unutmayın",
   "sync_status_attempting_sync": "SENKRONİZE EDİLMEYE ÇALIŞILIYOR",
   "sync_status_connected": "BAĞLANILDI",
   "sync_status_connecting": "BAĞLANILIYOR",
diff --git a/res/values/strings_uk.arb b/res/values/strings_uk.arb
index c6322ae22..e6e4c661d 100644
--- a/res/values/strings_uk.arb
+++ b/res/values/strings_uk.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "Перейдіть на гаманець, сумісний з EVM, і повторіть спробу (Ethereum, Polygon)",
   "symbol": "символ",
   "sync_all_wallets": "Синхронізувати всі гаманці",
+  "sync_enabled_warning": "Зверніть увагу, що фонове синхронізація все ще експериментальна",
   "sync_status_attempting_sync": "СПРОБА СИНХРОНІЗАЦІЇ",
   "sync_status_connected": "ПІДКЛЮЧЕНО",
   "sync_status_connecting": "ПІДКЛЮЧЕННЯ",
diff --git a/res/values/strings_ur.arb b/res/values/strings_ur.arb
index b90cf34cb..33f5d031f 100644
--- a/res/values/strings_ur.arb
+++ b/res/values/strings_ur.arb
@@ -634,6 +634,7 @@
   "switchToEVMCompatibleWallet": "(Ethereum, Polygon) ﮟﯾﺮﮐ ﺶﺷﻮﮐ ﮦﺭﺎﺑﻭﺩ ﺭﻭﺍ ﮟﯾﺮﮐ ﭻﺋﻮﺳ ﺮﭘ ﭧﯿﻟﺍﻭ ﮯﻟﺍﻭ ﮯﻨﮭﮐﺭ ﺖﻘﺑﺎﻄﻣ ",
   "symbol": "ﺖﻣﻼﻋ",
   "sync_all_wallets": "تمام بٹوے کو ہم آہنگ کریں",
+  "sync_enabled_warning": "براہ کرم نوٹ کریں کہ پس منظر کی مطابقت پذیری اب بھی تجرباتی ہے",
   "sync_status_attempting_sync": "ہم آہنگی کی کوشش کر رہا ہے۔",
   "sync_status_connected": "منسلک",
   "sync_status_connecting": "جڑ رہا ہے۔",
diff --git a/res/values/strings_yo.arb b/res/values/strings_yo.arb
index 78cde8c78..bb8d6fb48 100644
--- a/res/values/strings_yo.arb
+++ b/res/values/strings_yo.arb
@@ -633,6 +633,7 @@
   "switchToEVMCompatibleWallet": "Jọwọ yipada si apamọwọ ibaramu EVM ki o tun gbiyanju lẹẹkansi (Ethereum, Polygon)",
   "symbol": "Aami",
   "sync_all_wallets": "Muṣiṣẹpọ gbogbo awọn Woleti",
+  "sync_enabled_warning": "Jọwọ ṣe akiyesi pe amuṣiṣẹpọ isale tun jẹ esiperimenta",
   "sync_status_attempting_sync": "Ń GBÌYÀNJÚ MÚDỌ́GBA",
   "sync_status_connected": "TI DÁRAPỌ̀ MỌ́",
   "sync_status_connecting": "Ń DÁRAPỌ̀ MỌ́",
diff --git a/res/values/strings_zh.arb b/res/values/strings_zh.arb
index 953a29798..32e74fe0f 100644
--- a/res/values/strings_zh.arb
+++ b/res/values/strings_zh.arb
@@ -632,6 +632,7 @@
   "switchToEVMCompatibleWallet": "请切换到 EVM 兼容钱包并重试(以太坊、Polygon)",
   "symbol": "象征",
   "sync_all_wallets": "同步所有钱包",
+  "sync_enabled_warning": "请注意,背景同步仍然是实验性的",
   "sync_status_attempting_sync": "嘗試同步",
   "sync_status_connected": "已连接",
   "sync_status_connecting": "连接中",