Add alert for onion nodes

wow-support
Serhii 2 years ago
parent a0e98e6d90
commit e53602afa3

@ -73,7 +73,7 @@ class ConnectionSyncPage extends BasePage {
builder: (BuildContext context) {
return AlertWithTwoActions(
alertTitle: S.of(context).change_current_node_title,
alertContent: S.of(context).change_current_node(node.uriRaw),
alertContent: nodeListViewModel.getAlertContent(node.uriRaw),
leftButtonText: S.of(context).cancel,
rightButtonText: S.of(context).change,
actionLeftButton: () => Navigator.of(context).pop(),

@ -1,3 +1,4 @@
import 'package:cake_wallet/generated/i18n.dart';
import 'package:hive/hive.dart';
import 'package:mobx/mobx.dart';
import 'package:cw_core/wallet_base.dart';
@ -30,6 +31,10 @@ abstract class NodeListViewModelBase with Store {
return node;
}
String getAlertContent(String uri) =>
S.current.change_current_node(uri) +
'${uri.endsWith('.onion') || uri.contains('.onion:') ? '\n' + S.current.orbot_running_alert : ''}';
final ObservableList<Node> nodes;
final SettingsStore settingsStore;
final WalletBase wallet;

@ -677,5 +677,6 @@
"disabled": "Deaktiviert",
"enabled": "Ermöglicht",
"tor_only": "Nur Tor",
"unmatched_currencies": "Die Währung Ihres aktuellen Wallets stimmt nicht mit der des gescannten QR überein"
"unmatched_currencies": "Die Währung Ihres aktuellen Wallets stimmt nicht mit der des gescannten QR überein",
"orbot_running_alert": "Please make sure Orbot is running prior to connecting to this node."
}

@ -677,5 +677,6 @@
"disabled": "Disabled",
"enabled": "Enabled",
"tor_only": "Tor only",
"unmatched_currencies": "Your current wallet's currency does not match that of the scanned QR"
"unmatched_currencies": "Your current wallet's currency does not match that of the scanned QR",
"orbot_running_alert": "Please make sure Orbot is running prior to connecting to this node."
}

@ -677,5 +677,6 @@
"disabled": "Desactivado",
"enabled": "Activado",
"tor_only": "solo Tor",
"unmatched_currencies": "La moneda de su billetera actual no coincide con la del QR escaneado"
"unmatched_currencies": "La moneda de su billetera actual no coincide con la del QR escaneado",
"orbot_running_alert": "Asegúrese de que Orbot se esté ejecutando antes de conectarse a este nodo."
}

@ -675,5 +675,6 @@
"disabled": "Handicapé",
"enabled": "Activé",
"tor_only": "Tor uniquement",
"unmatched_currencies": "La devise de votre portefeuille actuel ne correspond pas à celle du QR scanné"
"unmatched_currencies": "La devise de votre portefeuille actuel ne correspond pas à celle du QR scanné",
"orbot_running_alert": "Veuillez vous assurer qu'Orbot est en cours d'exécution avant de vous connecter à ce nœud."
}

@ -677,5 +677,6 @@
"disabled": "अक्षम",
"enabled": "सक्रिय",
"tor_only": "Tor केवल",
"unmatched_currencies": "आपके वर्तमान वॉलेट की मुद्रा स्कैन किए गए क्यूआर से मेल नहीं खाती"
"unmatched_currencies": "आपके वर्तमान वॉलेट की मुद्रा स्कैन किए गए क्यूआर से मेल नहीं खाती",
"orbot_running_alert": "कृपया सुनिश्चित करें कि इस नोड से कनेक्ट करने से पहले Orbot चल रहा है।"
}

@ -677,5 +677,6 @@
"disabled": "Onemogućeno",
"enabled": "Omogućeno",
"tor_only": "Samo Tor",
"unmatched_currencies": "Valuta vašeg trenutnog novčanika ne odgovara onoj na skeniranom QR-u"
"unmatched_currencies": "Valuta vašeg trenutnog novčanika ne odgovara onoj na skeniranom QR-u",
"orbot_running_alert": "Provjerite radi li Orbot prije spajanja na ovaj čvor."
}

@ -677,5 +677,6 @@
"disabled": "Disabilitato",
"enabled": "Abilitato",
"tor_only": "Solo Tor",
"unmatched_currencies": "La valuta del tuo portafoglio attuale non corrisponde a quella del QR scansionato"
"unmatched_currencies": "La valuta del tuo portafoglio attuale non corrisponde a quella del QR scansionato",
"orbot_running_alert": "Assicurati che Orbot sia in esecuzione prima di connetterti a questo nodo."
}

@ -677,5 +677,6 @@
"disabled": "無効",
"enabled": "有効",
"tor_only": "Torのみ",
"unmatched_currencies": "現在のウォレットの通貨がスキャンされたQRの通貨と一致しません"
"unmatched_currencies": "現在のウォレットの通貨がスキャンされたQRの通貨と一致しません",
"orbot_running_alert": "このードに接続する前に、Orbot が実行されていることを確認してください"
}

@ -677,5 +677,6 @@
"disabled": "장애가 있는",
"enabled": "사용",
"tor_only": "Tor 뿐",
"unmatched_currencies": "현재 지갑의 통화가 스캔한 QR의 통화와 일치하지 않습니다."
"unmatched_currencies": "현재 지갑의 통화가 스캔한 QR의 통화와 일치하지 않습니다.",
"orbot_running_alert": "이 노드에 연결하기 전에 Orbot이 실행 중인지 확인하십시오."
}

@ -677,5 +677,6 @@
"disabled": "Gehandicapt",
"enabled": "Ingeschakeld",
"tor_only": "Alleen Tor",
"unmatched_currencies": "De valuta van uw huidige portemonnee komt niet overeen met die van de gescande QR"
"unmatched_currencies": "De valuta van uw huidige portemonnee komt niet overeen met die van de gescande QR",
"orbot_running_alert": "Zorg ervoor dat Orbot actief is voordat u verbinding maakt met dit knooppunt."
}

@ -677,5 +677,6 @@
"disabled": "Wyłączone",
"enabled": "Włączony",
"tor_only": "Tylko Tor",
"unmatched_currencies": "Waluta Twojego obecnego portfela nie odpowiada walucie zeskanowanego kodu QR"
"unmatched_currencies": "Waluta Twojego obecnego portfela nie odpowiada walucie zeskanowanego kodu QR",
"orbot_running_alert": "Upewnij się, że Orbot działa przed połączeniem z tym węzłem."
}

@ -676,5 +676,6 @@
"disabled": "Desabilitado",
"enabled": "Habilitado",
"tor_only": "Tor apenas",
"unmatched_currencies": "A moeda da sua carteira atual não corresponde à do QR digitalizado"
"unmatched_currencies": "A moeda da sua carteira atual não corresponde à do QR digitalizado",
"orbot_running_alert": "Certifique-se de que o Orbot esteja em execução antes de se conectar a este nó."
}

@ -677,5 +677,6 @@
"disabled": "Отключено",
"enabled": "Включено",
"tor_only": "Только Tor",
"unmatched_currencies": "Валюта вашего текущего кошелька не соответствует валюте отсканированного QR-кода."
"unmatched_currencies": "Валюта вашего текущего кошелька не соответствует валюте отсканированного QR-кода.",
"orbot_running_alert": "Перед подключением к этому узлу убедитесь, что Orbot запущен."
}

@ -676,5 +676,6 @@
"disabled": "Вимкнено",
"enabled": "Увімкнено",
"tor_only": "Тільки Tor",
"unmatched_currencies": "Валюта вашого гаманця не збігається з валютою сканованого QR-коду"
"unmatched_currencies": "Валюта вашого гаманця не збігається з валютою сканованого QR-коду",
"orbot_running_alert": "Перед підключенням до цього вузла переконайтеся, що Orbot запущено."
}

@ -675,5 +675,6 @@
"disabled": "禁用",
"enabled": "启用",
"tor_only": "仅限 Tor",
"unmatched_currencies": "您当前钱包的货币与扫描的 QR 的货币不匹配"
"unmatched_currencies": "您当前钱包的货币与扫描的 QR 的货币不匹配",
"orbot_running_alert": "请确保 Orbot 在连接到此节点之前正在运行。"
}

Loading…
Cancel
Save