From 580c0d87f05aa4fed93f4ba4ccdf75bc841c59ac Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Mon, 11 Jan 2021 19:14:53 +0200 Subject: [PATCH] CAKE-64 | added extra ID to _updateItems() method in the exchange_trade_view_model.dart; added extra_id to string resources --- lib/generated/i18n.dart | 23 +++++++++++++++++++ .../exchange/exchange_trade_view_model.dart | 10 ++++++-- res/values/strings_de.arb | 4 +++- res/values/strings_en.arb | 4 +++- res/values/strings_es.arb | 4 +++- res/values/strings_hi.arb | 4 +++- res/values/strings_ja.arb | 4 +++- res/values/strings_ko.arb | 4 +++- res/values/strings_nl.arb | 4 +++- res/values/strings_pl.arb | 4 +++- res/values/strings_pt.arb | 4 +++- res/values/strings_ru.arb | 4 +++- res/values/strings_uk.arb | 4 +++- res/values/strings_zh.arb | 4 +++- 14 files changed, 67 insertions(+), 14 deletions(-) diff --git a/lib/generated/i18n.dart b/lib/generated/i18n.dart index 1b19e3e7d..e49924485 100644 --- a/lib/generated/i18n.dart +++ b/lib/generated/i18n.dart @@ -103,6 +103,7 @@ class S implements WidgetsLocalizations { String get exchange_result_write_down_trade_id => "Please copy or write down the trade ID to continue."; String get exchange_sync_alert_content => "Please wait until your wallet is synchronized"; String get expired => "Expired"; + String get extra_id => "Extra ID:"; String get faq => "FAQ"; String get fetching => "Fetching"; String get filters => "Filter"; @@ -651,6 +652,8 @@ class $de extends S { @override String get expired => "Abgelaufen"; @override + String get extra_id => "Zusätzliche ID:"; + @override String get transaction_priority_regular => "Regulär"; @override String get trade_details_created_at => "Hergestellt in"; @@ -1365,6 +1368,8 @@ class $hi extends S { @override String get expired => "समय सीमा समाप्त"; @override + String get extra_id => "अतिरिक्त आईडी:"; + @override String get transaction_priority_regular => "नियमित"; @override String get trade_details_created_at => "पर बनाया गया"; @@ -2079,6 +2084,8 @@ class $ru extends S { @override String get expired => "Истекает"; @override + String get extra_id => "Дополнительный ID:"; + @override String get transaction_priority_regular => "Обычный"; @override String get trade_details_created_at => "Создано"; @@ -2793,6 +2800,8 @@ class $ko extends S { @override String get expired => "만료"; @override + String get extra_id => "추가 ID:"; + @override String get transaction_priority_regular => "정규병"; @override String get trade_details_created_at => "에 작성"; @@ -3507,6 +3516,8 @@ class $pt extends S { @override String get expired => "Expirada"; @override + String get extra_id => "ID extra:"; + @override String get transaction_priority_regular => "Regular"; @override String get trade_details_created_at => "Criada em"; @@ -4221,6 +4232,8 @@ class $uk extends S { @override String get expired => "Закінчується"; @override + String get extra_id => "Додатковий ID:"; + @override String get transaction_priority_regular => "Звичайний"; @override String get trade_details_created_at => "Створено"; @@ -4935,6 +4948,8 @@ class $ja extends S { @override String get expired => "期限切れ"; @override + String get extra_id => "追加ID:"; + @override String get transaction_priority_regular => "レギュラー"; @override String get trade_details_created_at => "で作成"; @@ -5653,6 +5668,8 @@ class $pl extends S { @override String get expired => "Przedawniony"; @override + String get extra_id => "Dodatkowy ID:"; + @override String get transaction_priority_regular => "Regularny"; @override String get trade_details_created_at => "Utworzono w"; @@ -6367,6 +6384,8 @@ class $es extends S { @override String get expired => "Muerto"; @override + String get extra_id => "ID adicional:"; + @override String get transaction_priority_regular => "Regular"; @override String get trade_details_created_at => "Creado en"; @@ -7081,6 +7100,8 @@ class $nl extends S { @override String get expired => "Verlopen"; @override + String get extra_id => "Extra ID:"; + @override String get transaction_priority_regular => "Regelmatig"; @override String get trade_details_created_at => "Gemaakt bij"; @@ -7795,6 +7816,8 @@ class $zh extends S { @override String get expired => "已过期"; @override + String get extra_id => "額外編號:"; + @override String get transaction_priority_regular => "定期"; @override String get trade_details_created_at => "创建于"; diff --git a/lib/view_model/exchange/exchange_trade_view_model.dart b/lib/view_model/exchange/exchange_trade_view_model.dart index 100445bc0..f83d708d9 100644 --- a/lib/view_model/exchange/exchange_trade_view_model.dart +++ b/lib/view_model/exchange/exchange_trade_view_model.dart @@ -96,9 +96,15 @@ abstract class ExchangeTradeViewModelBase with Store { void _updateItems() { items?.clear(); + items.add(ExchangeTradeItem( + title: S.current.id, data: '${trade.id}', isCopied: true)); + + if (trade.extraId != null) { + items.add(ExchangeTradeItem( + title: S.current.extra_id, data: '${trade.extraId}', isCopied: false)); + } + items.addAll([ - ExchangeTradeItem( - title: S.current.id, data: '${trade.id}', isCopied: true), ExchangeTradeItem( title: S.current.amount, data: '${trade.amount}', isCopied: false), ExchangeTradeItem( diff --git a/res/values/strings_de.arb b/res/values/strings_de.arb index bd3ea3641..02441e111 100644 --- a/res/values/strings_de.arb +++ b/res/values/strings_de.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Hinweis (zum Ändern tippen)", "transaction_key" : "Transaktionsschlüssel", "confirmations" : "Bestätigungen", - "recipient_address" : "Empfängeradresse" + "recipient_address" : "Empfängeradresse", + + "extra_id" : "Zusätzliche ID:" } \ No newline at end of file diff --git a/res/values/strings_en.arb b/res/values/strings_en.arb index 6570d79e8..29bd2cf27 100644 --- a/res/values/strings_en.arb +++ b/res/values/strings_en.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Note (tap to change)", "transaction_key" : "Transaction Key", "confirmations" : "Confirmations", - "recipient_address" : "Recipient address" + "recipient_address" : "Recipient address", + + "extra_id" : "Extra ID:" } \ No newline at end of file diff --git a/res/values/strings_es.arb b/res/values/strings_es.arb index 1f77d14de..60178b91d 100644 --- a/res/values/strings_es.arb +++ b/res/values/strings_es.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Nota (toque para cambiar)", "transaction_key" : "Clave de transacción", "confirmations" : "Confirmaciones", - "recipient_address" : "Dirección del receptor" + "recipient_address" : "Dirección del receptor", + + "extra_id" : "ID adicional:" } \ No newline at end of file diff --git a/res/values/strings_hi.arb b/res/values/strings_hi.arb index af34f66b8..30b8a3808 100644 --- a/res/values/strings_hi.arb +++ b/res/values/strings_hi.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "नोट (टैप टू चेंज)", "transaction_key" : "लेन-देन की", "confirmations" : "पुष्टिकरण", - "recipient_address" : "प्राप्तकर्ता का पता" + "recipient_address" : "प्राप्तकर्ता का पता", + + "extra_id" : "अतिरिक्त आईडी:" } \ No newline at end of file diff --git a/res/values/strings_ja.arb b/res/values/strings_ja.arb index 6bc0dc5c4..a701aa37e 100644 --- a/res/values/strings_ja.arb +++ b/res/values/strings_ja.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "注(タップして変更)", "transaction_key" : "トランザクションキー", "confirmations" : "確認", - "recipient_address" : "受信者のアドレス" + "recipient_address" : "受信者のアドレス", + + "extra_id" : "追加ID:" } \ No newline at end of file diff --git a/res/values/strings_ko.arb b/res/values/strings_ko.arb index f71eac28e..1ac48ae9f 100644 --- a/res/values/strings_ko.arb +++ b/res/values/strings_ko.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "메모 (변경하려면 탭하세요)", "transaction_key" : "거래 키", "confirmations" : "확인", - "recipient_address" : "받는 사람 주소" + "recipient_address" : "받는 사람 주소", + + "extra_id" : "추가 ID:" } \ No newline at end of file diff --git a/res/values/strings_nl.arb b/res/values/strings_nl.arb index ca7671e1b..4f2fb1509 100644 --- a/res/values/strings_nl.arb +++ b/res/values/strings_nl.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Opmerking (tik om te wijzigen)", "transaction_key" : "Transactiesleutel", "confirmations" : "Bevestigingen", - "recipient_address" : "Adres ontvanger" + "recipient_address" : "Adres ontvanger", + + "extra_id" : "Extra ID:" } \ No newline at end of file diff --git a/res/values/strings_pl.arb b/res/values/strings_pl.arb index 0c6decbae..977ce573c 100644 --- a/res/values/strings_pl.arb +++ b/res/values/strings_pl.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Notatka (dotknij, aby zmienić)", "transaction_key" : "Klucz transakcji", "confirmations" : "Potwierdzenia", - "recipient_address" : "Adres odbiorcy" + "recipient_address" : "Adres odbiorcy", + + "extra_id" : "Dodatkowy ID:" } \ No newline at end of file diff --git a/res/values/strings_pt.arb b/res/values/strings_pt.arb index 4537fa7ac..54028de9c 100644 --- a/res/values/strings_pt.arb +++ b/res/values/strings_pt.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Nota (toque para alterar)", "transaction_key" : "Chave de transação", "confirmations" : "Confirmações", - "recipient_address" : "Endereço do destinatário" + "recipient_address" : "Endereço do destinatário", + + "extra_id" : "ID extra:" } diff --git a/res/values/strings_ru.arb b/res/values/strings_ru.arb index 5a7bbd69e..010e00337 100644 --- a/res/values/strings_ru.arb +++ b/res/values/strings_ru.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Примечание (нажмите для изменения)", "transaction_key" : "Ключ транзакции", "confirmations" : "Подтверждения", - "recipient_address" : "Адрес получателя" + "recipient_address" : "Адрес получателя", + + "extra_id" : "Дополнительный ID:" } \ No newline at end of file diff --git a/res/values/strings_uk.arb b/res/values/strings_uk.arb index 2d7f06d62..6527b2b98 100644 --- a/res/values/strings_uk.arb +++ b/res/values/strings_uk.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "Примітка (натисніть для зміни)", "transaction_key" : "Ключ транзакції", "confirmations" : "Підтвердження", - "recipient_address" : "Адреса одержувача" + "recipient_address" : "Адреса одержувача", + + "extra_id" : "Додатковий ID:" } \ No newline at end of file diff --git a/res/values/strings_zh.arb b/res/values/strings_zh.arb index 03cc79c2e..3fa5c7cfa 100644 --- a/res/values/strings_zh.arb +++ b/res/values/strings_zh.arb @@ -435,5 +435,7 @@ "note_tap_to_change" : "注意(輕按即可更改)", "transaction_key" : "交易密碼", "confirmations" : "確認書", - "recipient_address" : "收件人地址" + "recipient_address" : "收件人地址", + + "extra_id" : "額外編號:" } \ No newline at end of file