CWA-168 | added translation for "Version", used arrow function in the callback, used collection.last for setting items

Oleksandr Sobol committed Feb 4, 2020 at 19:47 UTC 8c5c5636e916c7483c24b42eb6d71884effaeb3b
14 files changed +57 -16
lib/generated/i18n.dart
+21
@@ -286,6 +286,7 @@ class S implements WidgetsLocalizations {
286 String trade_id_not_found(String tradeId, String title) => "Trade ${tradeId} of ${title} not found.";
287 String trade_is_powered_by(String provider) => "This trade is powered by ${provider}";
288 String transaction_details_copied(String title) => "${title} copied to Clipboard";
289 + String version(String currentVersion) => "Version ${currentVersion}";
290 String wallet_list_failed_to_load(String wallet_name, String error) => "Failed to load ${wallet_name} wallet. ${error}";
291 String wallet_list_failed_to_remove(String wallet_name, String error) => "Failed to remove ${wallet_name} wallet. ${error}";
292 String wallet_list_loading_wallet(String wallet_name) => "Loading ${wallet_name} wallet";
@@ -797,6 +798,8 @@ class $de extends S {
798 @override
799 String wallet_list_loading_wallet(String wallet_name) => "Wird geladen ${wallet_name} Wallet";
800 @override
801 + String version(String currentVersion) => "Ausführung ${currentVersion}";
802 + @override
803 String router_no_route(String name) => "Keine Route definiert für ${name}";
804 @override
805 String trade_id_not_found(String tradeId, String title) => "Handel ${tradeId} von ${title} nicht gefunden.";
@@ -1343,6 +1346,8 @@ class $hi extends S {
1346 @override
1347 String wallet_list_loading_wallet(String wallet_name) => "लोड हो रहा है ${wallet_name} बटुआ";
1348 @override
1349 + String version(String currentVersion) => "संस्करण ${currentVersion}";
1350 + @override
1351 String router_no_route(String name) => "के लिए कोई मार्ग निर्धारित नहीं है ${name}";
1352 @override
1353 String trade_id_not_found(String tradeId, String title) => "व्यापार ${tradeId} of ${title} नहीं मिला.";
@@ -1889,6 +1894,8 @@ class $ru extends S {
1894 @override
1895 String wallet_list_loading_wallet(String wallet_name) => "Загрузка ${wallet_name} кошелька";
1896 @override
1897 + String version(String currentVersion) => "Версия ${currentVersion}";
1898 + @override
1899 String router_no_route(String name) => "Экран не найден ${name}";
1900 @override
1901 String trade_id_not_found(String tradeId, String title) => "Сделка ${tradeId} ${title} не найдена.";
@@ -2435,6 +2442,8 @@ class $ko extends S {
2442 @override
2443 String wallet_list_loading_wallet(String wallet_name) => "로딩 ${wallet_name} 지갑";
2444 @override
2445 + String version(String currentVersion) => "버전 ${currentVersion}";
2446 + @override
2447 String router_no_route(String name) => "에 정의 된 경로가 없습니다 ${name}";
2448 @override
2449 String trade_id_not_found(String tradeId, String title) => "무역 ${tradeId} 의 ${title} 찾을 수 없습니다.";
@@ -2981,6 +2990,8 @@ class $pt extends S {
2990 @override
2991 String wallet_list_loading_wallet(String wallet_name) => "Abrindo a carteira ${wallet_name}";
2992 @override
2993 + String version(String currentVersion) => "Versão ${currentVersion}";
2994 + @override
2995 String router_no_route(String name) => "Nenhuma rota definida para ${name}";
2996 @override
2997 String trade_id_not_found(String tradeId, String title) => "A troca ${tradeId} de ${title} não foi encontrada.";
@@ -3527,6 +3538,8 @@ class $ja extends S {
3538 @override
3539 String wallet_list_loading_wallet(String wallet_name) => "読み込み中 ${wallet_name} 財布";
3540 @override
3541 + String version(String currentVersion) => "バージョン ${currentVersion}";
3542 + @override
3543 String router_no_route(String name) => "ルートが定義されていません ${name}";
3544 @override
3545 String trade_id_not_found(String tradeId, String title) => "トレード ${tradeId} of ${title} 見つかりません";
@@ -4077,6 +4090,8 @@ class $pl extends S {
4090 @override
4091 String wallet_list_loading_wallet(String wallet_name) => "Ładuję ${wallet_name} portfel";
4092 @override
4093 + String version(String currentVersion) => "Wersja ${currentVersion}";
4094 + @override
4095 String router_no_route(String name) => "Brak zdefiniowanej trasy dla ${name}";
4096 @override
4097 String trade_id_not_found(String tradeId, String title) => "Handel ${tradeId} of ${title} nie znaleziono.";
@@ -4623,6 +4638,8 @@ class $es extends S {
4638 @override
4639 String wallet_list_loading_wallet(String wallet_name) => "Billetera ${wallet_name} de carga";
4640 @override
4641 + String version(String currentVersion) => "Versión ${currentVersion}";
4642 + @override
4643 String router_no_route(String name) => "No hay ruta definida para ${name}";
4644 @override
4645 String trade_id_not_found(String tradeId, String title) => "Comercio ${tradeId} de ${title} no encontrado.";
@@ -5169,6 +5186,8 @@ class $nl extends S {
5186 @override
5187 String wallet_list_loading_wallet(String wallet_name) => "Bezig met laden ${wallet_name} portemonnee";
5188 @override
5189 + String version(String currentVersion) => "Versie ${currentVersion}";
5190 + @override
5191 String router_no_route(String name) => "Geen route gedefinieerd voor ${name}";
5192 @override
5193 String trade_id_not_found(String tradeId, String title) => "Handel ${tradeId} van ${title} niet gevonden.";
@@ -5715,6 +5734,8 @@ class $zh extends S {
5734 @override
5735 String wallet_list_loading_wallet(String wallet_name) => "载入中 ${wallet_name} 钱包";
5736 @override
5737 + String version(String currentVersion) => "版 ${currentVersion}";
5738 + @override
5739 String router_no_route(String name) => "未定义路线 ${name}";
5740 @override
5741 String trade_id_not_found(String tradeId, String title) => "贸易方式 ${tradeId} 的 ${title} 未找到.";
lib/src/screens/settings/settings.dart
+1 -1
@@ -343,7 +343,7 @@ class SettingsFormState extends State<SettingsForm> {
343 final item = _items[index];
344 bool _isDrawDivider = true;
345
346 - if (item.attribute == Attributes.header || index == _items.length - 1) {
346 + if (item.attribute == Attributes.header || item == _items.last) {
347 _isDrawDivider = false;
348 } else {
349 if (_items[index + 1].attribute == Attributes.header) {
lib/src/stores/settings/settings_store.dart
+2 -4
@@ -48,9 +48,7 @@ abstract class SettingsStoreBase with Store {
48 serializeActionlistDisplayModes(actionlistDisplayMode)),
49 fireImmediately: false);
50
51 - PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
52 - currentVersion = packageInfo.version;
53 - });
51 + PackageInfo.fromPlatform().then((PackageInfo packageInfo) => currentVersion = packageInfo.version);
52
53 }
54
@@ -272,7 +270,7 @@ abstract class SettingsStoreBase with Store {
270 ItemHeaders.support: S.current.settings_support,
271 ItemHeaders.termsAndConditions: S.current.settings_terms_and_conditions,
272 ItemHeaders.faq: S.current.faq,
275 - ItemHeaders.version: 'Version $currentVersion'
273 + ItemHeaders.version: S.current.version(currentVersion)
274 });
275 }
276
res/values/strings_de.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Einfügen",
337 "restore_from_seed_placeholder" : "Bitte geben Sie hier Ihren Code ein",
338 "add_new_word" : "Neues Wort hinzufügen",
339 - "incorrect_seed" : "Der eingegebene Text ist ungültig."
339 + "incorrect_seed" : "Der eingegebene Text ist ungültig.",
340 +
341 + "version" : "Ausführung ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_en.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Paste",
337 "restore_from_seed_placeholder" : "Please enter or paste your seed here",
338 "add_new_word" : "Add new word",
339 - "incorrect_seed" : "The text entered is not valid."
339 + "incorrect_seed" : "The text entered is not valid.",
340 +
341 + "version" : "Version ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_es.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Pegar",
337 "restore_from_seed_placeholder" : "Ingrese o pegue su frase de código aquí",
338 "add_new_word" : "Agregar palabra nueva",
339 - "incorrect_seed" : "El texto ingresado no es válido."
339 + "incorrect_seed" : "El texto ingresado no es válido.",
340 +
341 + "version" : "Versión ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_hi.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "पेस्ट करें",
337 "restore_from_seed_placeholder" : "कृपया अपना कोड वाक्यांश यहां दर्ज करें या पेस्ट करें",
338 "add_new_word" : "नया शब्द जोड़ें",
339 - "incorrect_seed" : "दर्ज किया गया पाठ मान्य नहीं है।"
339 + "incorrect_seed" : "दर्ज किया गया पाठ मान्य नहीं है।",
340 +
341 + "version" : "संस्करण ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_ja.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "ペースト",
337 "restore_from_seed_placeholder" : "ここにコードフレーズを入力または貼り付けてください",
338 "add_new_word" : "新しい単語を追加",
339 - "incorrect_seed" : "入力されたテキストは無効です。"
339 + "incorrect_seed" : "入力されたテキストは無効です。",
340 +
341 + "version" : "バージョン ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_ko.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "풀",
337 "restore_from_seed_placeholder" : "여기에 코드 문구를 입력하거나 붙여 넣으십시오.",
338 "add_new_word" : "새로운 단어 추가",
339 - "incorrect_seed" : "입력하신 텍스트가 유효하지 않습니다."
339 + "incorrect_seed" : "입력하신 텍스트가 유효하지 않습니다.",
340 +
341 + "version" : "버전 ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_nl.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Plakken",
337 "restore_from_seed_placeholder" : "Voer hier uw codefrase in of plak deze",
338 "add_new_word" : "Nieuw woord toevoegen",
339 - "incorrect_seed" : "De ingevoerde tekst is niet geldig."
339 + "incorrect_seed" : "De ingevoerde tekst is niet geldig.",
340 +
341 + "version" : "Versie ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_pl.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Pasta",
337 "restore_from_seed_placeholder" : "Wpisz lub wklej tutaj swoją frazę kodową",
338 "add_new_word" : "Dodaj nowe słowo",
339 - "incorrect_seed" : "Wprowadzony tekst jest nieprawidłowy."
339 + "incorrect_seed" : "Wprowadzony tekst jest nieprawidłowy.",
340 +
341 + "version" : "Wersja ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_pt.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Colar",
337 "restore_from_seed_placeholder" : "Digite ou cole sua frase de código aqui",
338 "add_new_word" : "Adicionar nova palavra",
339 - "incorrect_seed" : "O texto digitado não é válido."
339 + "incorrect_seed" : "O texto digitado não é válido.",
340 +
341 + "version" : "Versão ${currentVersion}"
342 }
res/values/strings_ru.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "Вставить",
337 "restore_from_seed_placeholder" : "Введите или вставте код фразу вашего кошелька",
338 "add_new_word" : "Добавить новое слово",
339 - "incorrect_seed" : "Введенный текст некорректный."
339 + "incorrect_seed" : "Введенный текст некорректный.",
340 +
341 + "version" : "Версия ${currentVersion}"
342 }
\ No newline at end of file
res/values/strings_zh.arb
+3 -1
@@ -336,5 +336,7 @@
336 "paste" : "糊",
337 "restore_from_seed_placeholder" : "请在此处输入或粘贴您的代码短语",
338 "add_new_word" : "添加新词",
339 - "incorrect_seed" : "输入的文字无效。"
339 + "incorrect_seed" : "输入的文字无效。",
340 +
341 + "version" : "版 ${currentVersion}"
342 }
\ No newline at end of file