CWA-69 | translated title and content in the openalias alert dialog (send page)

Oleksandr Sobol committed Feb 21, 2020 at 12:45 UTC 28085ce057348c91b5f62bf01ddc7e9e375fe952
14 files changed +91 -16
lib/generated/i18n.dart
+42
@@ -102,6 +102,7 @@ class S implements WidgetsLocalizations {
102 String get nodes_list_reset_to_default_message => "Are you sure that you want to reset settings to default?";
103 String get offer_expires_in => "Offer expires in: ";
104 String get ok => "OK";
105 + String get openalias_alert_title => "XMR Recipient Detected";
106 String get outgoing => "Outgoing";
107 String get password => "Password";
108 String get paste => "Paste";
@@ -280,6 +281,7 @@ class S implements WidgetsLocalizations {
281 String failed_authentication(String state_error) => "Failed authentication. ${state_error}";
282 String max_value(String value, String currency) => "Max: ${value} ${currency}";
283 String min_value(String value, String currency) => "Min: ${value} ${currency}";
284 + String openalias_alert_content(String recipient_name) => "You will be sending funds to\n${recipient_name}";
285 String powered_by(String title) => "Powered by ${title}";
286 String router_no_route(String name) => "No route defined for ${name}";
287 String send_priority(String transactionPriority) => "Currently the fee is set at ${transactionPriority} priority.\nTransaction priority can be adjusted in the settings";
@@ -436,6 +438,8 @@ class $de extends S {
438 @override
439 String get contact => "Kontakt";
440 @override
441 + String get openalias_alert_title => "XMR-Empfänger erkannt";
442 + @override
443 String get auth_store_incorrect_password => "Falsches PIN";
444 @override
445 String get transaction_priority_slow => "Schleppend";
@@ -844,6 +848,8 @@ class $de extends S {
848 @override
849 String commit_transaction_amount_fee(String amount, String fee) => "Transaktion festschreiben\nMenge: ${amount}\nGebühr: ${fee}";
850 @override
851 + String openalias_alert_content(String recipient_name) => "Sie senden Geld an\n${recipient_name}";
852 + @override
853 String wallet_list_failed_to_remove(String wallet_name, String error) => "Fehler beim Entfernen ${wallet_name} Wallet. ${error}";
854 @override
855 String copied_key_to_clipboard(String key) => "Kopiert ${key} Zur Zwischenablage";
@@ -992,6 +998,8 @@ class $hi extends S {
998 @override
999 String get contact => "संपर्क करें";
1000 @override
1001 + String get openalias_alert_title => "XMR प्राप्तकर्ता का पता लगाया";
1002 + @override
1003 String get auth_store_incorrect_password => "गलत पिन";
1004 @override
1005 String get transaction_priority_slow => "धीरे";
@@ -1400,6 +1408,8 @@ class $hi extends S {
1408 @override
1409 String commit_transaction_amount_fee(String amount, String fee) => "लेन-देन करें\nरकम: ${amount}\nशुल्क: ${fee}";
1410 @override
1411 + String openalias_alert_content(String recipient_name) => "आपको धनराशि भेजी जाएगी\n${recipient_name}";
1412 + @override
1413 String wallet_list_failed_to_remove(String wallet_name, String error) => "निकालने में विफल ${wallet_name} बटुआ. ${error}";
1414 @override
1415 String copied_key_to_clipboard(String key) => "की नकल की ${key} क्लिपबोर्ड पर";
@@ -1548,6 +1558,8 @@ class $ru extends S {
1558 @override
1559 String get contact => "Контакт";
1560 @override
1561 + String get openalias_alert_title => "Получатель XMR обнаружен";
1562 + @override
1563 String get auth_store_incorrect_password => "Некорректный пин";
1564 @override
1565 String get transaction_priority_slow => "Медленный";
@@ -1956,6 +1968,8 @@ class $ru extends S {
1968 @override
1969 String commit_transaction_amount_fee(String amount, String fee) => "Подтвердить транзакцию \nСумма: ${amount}\nСбор: ${fee}";
1970 @override
1971 + String openalias_alert_content(String recipient_name) => "Вы будете отправлять средства\n${recipient_name}";
1972 + @override
1973 String wallet_list_failed_to_remove(String wallet_name, String error) => "Ошибка при удалении ${wallet_name} кошелька. ${error}";
1974 @override
1975 String copied_key_to_clipboard(String key) => "Скопировано ${key} в буфер обмена";
@@ -2104,6 +2118,8 @@ class $ko extends S {
2118 @override
2119 String get contact => "접촉";
2120 @override
2121 + String get openalias_alert_title => "XMR 수신자 감지";
2122 + @override
2123 String get auth_store_incorrect_password => "잘못된 PIN";
2124 @override
2125 String get transaction_priority_slow => "느린";
@@ -2512,6 +2528,8 @@ class $ko extends S {
2528 @override
2529 String commit_transaction_amount_fee(String amount, String fee) => "커밋 거래\n양: ${amount}\n보수: ${fee}";
2530 @override
2531 + String openalias_alert_content(String recipient_name) => "당신은에 자금을 보낼 것입니다\n${recipient_name}";
2532 + @override
2533 String wallet_list_failed_to_remove(String wallet_name, String error) => "제거하지 못했습니다 ${wallet_name} 지갑. ${error}";
2534 @override
2535 String copied_key_to_clipboard(String key) => "복사 ${key} 클립 보드로";
@@ -2660,6 +2678,8 @@ class $pt extends S {
2678 @override
2679 String get contact => "Contato";
2680 @override
2681 + String get openalias_alert_title => "Destinatário XMR detectado";
2682 + @override
2683 String get auth_store_incorrect_password => "PIN incorreto";
2684 @override
2685 String get transaction_priority_slow => "Lenta";
@@ -3068,6 +3088,8 @@ class $pt extends S {
3088 @override
3089 String commit_transaction_amount_fee(String amount, String fee) => "Confirmar transação\nQuantia: ${amount}\nTaxa: ${fee}";
3090 @override
3091 + String openalias_alert_content(String recipient_name) => "Você enviará fundos para\n${recipient_name}";
3092 + @override
3093 String wallet_list_failed_to_remove(String wallet_name, String error) => "Falha ao remover a carteira ${wallet_name}. ${error}";
3094 @override
3095 String copied_key_to_clipboard(String key) => "${key} copiada para a área de transferência";
@@ -3216,6 +3238,8 @@ class $ja extends S {
3238 @override
3239 String get contact => "接触";
3240 @override
3241 + String get openalias_alert_title => "XMR受信者が検出されました";
3242 + @override
3243 String get auth_store_incorrect_password => "間違ったPIN";
3244 @override
3245 String get transaction_priority_slow => "スロー";
@@ -3624,6 +3648,8 @@ class $ja extends S {
3648 @override
3649 String commit_transaction_amount_fee(String amount, String fee) => "トランザクションをコミット\n量: ${amount}\n費用: ${fee}";
3650 @override
3651 + String openalias_alert_content(String recipient_name) => "に送金します\n${recipient_name}";
3652 + @override
3653 String wallet_list_failed_to_remove(String wallet_name, String error) => "削除できませんでした ${wallet_name} 財布. ${error}";
3654 @override
3655 String copied_key_to_clipboard(String key) => "コピー済み ${key} クリップボードへ";
@@ -3776,6 +3802,8 @@ class $pl extends S {
3802 @override
3803 String get contact => "Kontakt";
3804 @override
3805 + String get openalias_alert_title => "Wykryto odbiorcę XMR";
3806 + @override
3807 String get auth_store_incorrect_password => "Niepoprawny PIN";
3808 @override
3809 String get transaction_priority_slow => "Powolny";
@@ -4184,6 +4212,8 @@ class $pl extends S {
4212 @override
4213 String commit_transaction_amount_fee(String amount, String fee) => "Zatwierdź transakcję\nIlość: ${amount}\nOpłata: ${fee}";
4214 @override
4215 + String openalias_alert_content(String recipient_name) => "Będziesz wysyłać środki na\n${recipient_name}";
4216 + @override
4217 String wallet_list_failed_to_remove(String wallet_name, String error) => "Nie udało się usunąć ${wallet_name} portfel. ${error}";
4218 @override
4219 String copied_key_to_clipboard(String key) => "Skopiowane ${key} do schowka";
@@ -4332,6 +4362,8 @@ class $es extends S {
4362 @override
4363 String get contact => "Contacto";
4364 @override
4365 + String get openalias_alert_title => "Destinatario XMR detectado";
4366 + @override
4367 String get auth_store_incorrect_password => "Contraseña PIN";
4368 @override
4369 String get transaction_priority_slow => "Lento";
@@ -4740,6 +4772,8 @@ class $es extends S {
4772 @override
4773 String commit_transaction_amount_fee(String amount, String fee) => "Confirmar transacción\nCantidad: ${amount}\nCuota: ${fee}";
4774 @override
4775 + String openalias_alert_content(String recipient_name) => "Enviará fondos a\n${recipient_name}";
4776 + @override
4777 String wallet_list_failed_to_remove(String wallet_name, String error) => "Error al elimina ${wallet_name} billetera. ${error}";
4778 @override
4779 String copied_key_to_clipboard(String key) => "Copiado ${key} al portapapeles";
@@ -4888,6 +4922,8 @@ class $nl extends S {
4922 @override
4923 String get contact => "Contact";
4924 @override
4925 + String get openalias_alert_title => "XMR-ontvanger gedetecteerd";
4926 + @override
4927 String get auth_store_incorrect_password => "Incorrect PIN";
4928 @override
4929 String get transaction_priority_slow => "Langzaam";
@@ -5296,6 +5332,8 @@ class $nl extends S {
5332 @override
5333 String commit_transaction_amount_fee(String amount, String fee) => "Verricht transactie\nBedrag: ${amount}\nhonorarium: ${fee}";
5334 @override
5335 + String openalias_alert_content(String recipient_name) => "U stuurt geld naar\n${recipient_name}";
5336 + @override
5337 String wallet_list_failed_to_remove(String wallet_name, String error) => "Verwijderen mislukt ${wallet_name} portemonnee. ${error}";
5338 @override
5339 String copied_key_to_clipboard(String key) => "Gekopieerd ${key} naar het klembord";
@@ -5444,6 +5482,8 @@ class $zh extends S {
5482 @override
5483 String get contact => "联系";
5484 @override
5485 + String get openalias_alert_title => "檢測到XMR收件人";
5486 + @override
5487 String get auth_store_incorrect_password => "PIN码错误";
5488 @override
5489 String get transaction_priority_slow => "慢";
@@ -5852,6 +5892,8 @@ class $zh extends S {
5892 @override
5893 String commit_transaction_amount_fee(String amount, String fee) => "提交交易\n量: ${amount}\nFee: ${fee}";
5894 @override
5895 + String openalias_alert_content(String recipient_name) => "您將匯款至\n${recipient_name}";
5896 + @override
5897 String wallet_list_failed_to_remove(String wallet_name, String error) => "删除失败 ${wallet_name} 钱包. ${error}";
5898 @override
5899 String copied_key_to_clipboard(String key) => "复制 ${key} 到剪贴板";
lib/src/domain/common/openalias.dart
+3 -3
@@ -30,11 +30,11 @@ Future<Map<String, String>> fetchXmrAddressAndRecipientName(String name) async {
30 .toString().replaceAll("oa1:xmr recipient_address=", "")
31 .replaceAll("(", "").replaceAll(")", "").trim();
32
33 - final recipientName = dataList.where((item) => (item.contains("recipient_name"))).toString();
33 + final recipientName = dataList.where((item) => (item.contains("recipient_name"))).toString()
34 + .replaceAll("(", "").replaceAll(")", "").trim();
35
36 if (recipientName.isNotEmpty) {
36 - map["recipient_name"] = recipientName.replaceAll("recipient_name=", "")
37 - .replaceAll("(", "").replaceAll(")", "").trim();
37 + map["recipient_name"] = recipientName.replaceAll("recipient_name=", "");
38 }
39
40 break;
lib/src/screens/send/send_page.dart
+2 -2
@@ -68,8 +68,8 @@ class SendFormState extends State<SendForm> {
68 context: context,
69 builder: (BuildContext context) {
70 return AlertDialog(
71 - title: Text("XMR Recipient Detected"),
72 - content: Text("You will be sending funds to\n${map["recipient_name"]}"),
71 + title: Text(S.of(context).openalias_alert_title),
72 + content: Text(S.of(context).openalias_alert_content(map["recipient_name"])),
73 actions: <Widget>[
74 FlatButton(
75 child: Text(S.of(context).ok),
res/values/strings_de.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "Der eingegebene Text ist ungültig.",
343
344 "biometric_auth_reason" : "Scannen Sie Ihren Fingerabdruck zur Authentifizierung",
345 - "version" : "Ausführung ${currentVersion}"
345 + "version" : "Ausführung ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR-Empfänger erkannt",
348 + "openalias_alert_content" : "Sie senden Geld an\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_en.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "The text entered is not valid.",
343
344 "biometric_auth_reason" : "Scan your fingerprint to authenticate",
345 - "version" : "Version ${currentVersion}"
345 + "version" : "Version ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR Recipient Detected",
348 + "openalias_alert_content" : "You will be sending funds to\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_es.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "El texto ingresado no es válido.",
343
344 "biometric_auth_reason" : "Escanee su huella digital para autenticar",
345 - "version" : "Versión ${currentVersion}"
345 + "version" : "Versión ${currentVersion}",
346 +
347 + "openalias_alert_title" : "Destinatario XMR detectado",
348 + "openalias_alert_content" : "Enviará fondos a\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_hi.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "दर्ज किया गया पाठ मान्य नहीं है।",
343
344 "biometric_auth_reason" : "प्रमाणित करने के लिए अपने फ़िंगरप्रिंट को स्कैन करें",
345 - "version" : "संस्करण ${currentVersion}"
345 + "version" : "संस्करण ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR प्राप्तकर्ता का पता लगाया",
348 + "openalias_alert_content" : "आपको धनराशि भेजी जाएगी\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_ja.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "入力されたテキストは無効です。",
343
344 "biometric_auth_reason" : "प指紋をスキャンして認証する",
345 - "version" : "バージョン ${currentVersion}"
345 + "version" : "バージョン ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR受信者が検出されました",
348 + "openalias_alert_content" : "に送金します\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_ko.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "입력하신 텍스트가 유효하지 않습니다.",
343
344 "biometric_auth_reason" : "지문을 스캔하여 인증",
345 - "version" : "버전 ${currentVersion}"
345 + "version" : "버전 ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR 수신자 감지",
348 + "openalias_alert_content" : "당신은에 자금을 보낼 것입니다\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_nl.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "De ingevoerde tekst is niet geldig.",
343
344 "biometric_auth_reason" : "Scan uw vingerafdruk om te verifiëren",
345 - "version" : "Versie ${currentVersion}"
345 + "version" : "Versie ${currentVersion}",
346 +
347 + "openalias_alert_title" : "XMR-ontvanger gedetecteerd",
348 + "openalias_alert_content" : "U stuurt geld naar\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_pl.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "Wprowadzony tekst jest nieprawidłowy.",
343
344 "biometric_auth_reason" : "Zeskanuj swój odcisk palca, aby go uwierzytelnić",
345 - "version" : "Wersja ${currentVersion}"
345 + "version" : "Wersja ${currentVersion}",
346 +
347 + "openalias_alert_title" : "Wykryto odbiorcę XMR",
348 + "openalias_alert_content" : "Będziesz wysyłać środki na\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_pt.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "O texto digitado não é válido.",
343
344 "biometric_auth_reason" : "Digitalize sua impressão digital para autenticar",
345 - "version" : "Versão ${currentVersion}"
345 + "version" : "Versão ${currentVersion}",
346 +
347 + "openalias_alert_title" : "Destinatário XMR detectado",
348 + "openalias_alert_content" : "Você enviará fundos para\n${recipient_name}"
349 }
res/values/strings_ru.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "Введенный текст некорректный.",
343
344 "biometric_auth_reason" : "Отсканируйте свой отпечаток пальца для аутентификации",
345 - "version" : "Версия ${currentVersion}"
345 + "version" : "Версия ${currentVersion}",
346 +
347 + "openalias_alert_title" : "Получатель XMR обнаружен",
348 + "openalias_alert_content" : "Вы будете отправлять средства\n${recipient_name}"
349 }
\ No newline at end of file
res/values/strings_zh.arb
+4 -1
@@ -342,5 +342,8 @@
342 "incorrect_seed" : "输入的文字无效。",
343
344 "biometric_auth_reason" : "掃描指紋以進行身份驗證",
345 - "version" : "版 ${currentVersion}"
345 + "version" : "版 ${currentVersion}",
346 +
347 + "openalias_alert_title" : "檢測到XMR收件人",
348 + "openalias_alert_content" : "您將匯款至\n${recipient_name}"
349 }
\ No newline at end of file