Skip to content

Commit

Permalink
Fix minor localization
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinullrich committed Dec 13, 2024
1 parent 3d96e37 commit 883ecec
Show file tree
Hide file tree
Showing 30 changed files with 38 additions and 8 deletions.
16 changes: 9 additions & 7 deletions lib/src/screens/connect_device/connect_device_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,41 @@ class ConnectDevicePageParams {
final WalletType walletType;
final OnConnectDevice onConnectDevice;
final bool allowChangeWallet;
final bool allowBack;
final bool isReconnect;

ConnectDevicePageParams({
required this.walletType,
required this.onConnectDevice,
this.allowChangeWallet = false,
this.allowBack = true,
this.isReconnect = false,
});
}

class ConnectDevicePage extends BasePage {
final WalletType walletType;
final OnConnectDevice onConnectDevice;
final bool allowChangeWallet;
final bool allowBack;
final bool isReconnect;
final LedgerViewModel ledgerVM;

ConnectDevicePage(ConnectDevicePageParams params, this.ledgerVM)
: walletType = params.walletType,
onConnectDevice = params.onConnectDevice,
allowChangeWallet = params.allowChangeWallet,
allowBack = params.allowBack;
isReconnect = params.isReconnect;

@override
String get title => S.current.restore_title_from_hardware_wallet;
String get title => isReconnect
? S.current.reconnect_your_hardware_wallet
: S.current.restore_title_from_hardware_wallet;

@override
Widget? leading(BuildContext context) =>
allowBack ? super.leading(context) : null;
!isReconnect ? super.leading(context) : null;

@override
Widget body(BuildContext context) => PopScope(
canPop: allowBack,
canPop: !isReconnect,
child: ConnectDevicePageBody(
walletType,
onConnectDevice,
Expand Down
2 changes: 1 addition & 1 deletion lib/view_model/hardware_wallet/ledger_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ abstract class LedgerViewModelBase with Store {
arguments: ConnectDevicePageParams(
walletType: WalletType.monero,
allowChangeWallet: true,
allowBack: false,
isReconnect: true,
onConnectDevice: (context, ledgerVM) async {
Navigator.of(context).pop();
},
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "عنوان المستلم",
"reconnect": "أعد الاتصال",
"reconnect_alert_text": "هل أنت متأكد من رغبتك في إعادة الاتصال؟",
"reconnect_your_hardware_wallet": "أعد توصيل محفظة الأجهزة الخاصة بك",
"reconnection": "إعادة الاتصال",
"red_dark_theme": "موضوع الظلام الأحمر",
"red_light_theme": "موضوع الضوء الأحمر",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_bg.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Адрес на получател",
"reconnect": "Reconnect",
"reconnect_alert_text": "Сигурни ли сте, че искате да се свържете отново?",
"reconnect_your_hardware_wallet": "Свържете отново хардуерния си портфейл",
"reconnection": "Свързване отново",
"red_dark_theme": "Червена тъмна тема",
"red_light_theme": "Тема на червената светлина",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Adresa příjemce",
"reconnect": "Znovu připojit",
"reconnect_alert_text": "Opravdu se chcete znovu připojit?",
"reconnect_your_hardware_wallet": "Znovu připojte svou hardwarovou peněženku",
"reconnection": "Znovu připojit",
"red_dark_theme": "Červené temné téma",
"red_light_theme": "Téma červeného světla",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "Empfängeradresse",
"reconnect": "Erneut verbinden",
"reconnect_alert_text": "Sind Sie sicher, dass Sie sich neu verbinden möchten?",
"reconnect_your_hardware_wallet": "Schließen Sie Ihre Hardware -Brieftasche wieder an",
"reconnection": "Neu verbinden",
"red_dark_theme": "Red Dark Thema",
"red_light_theme": "Red Light Thema",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Recipient address",
"reconnect": "Reconnect",
"reconnect_alert_text": "Are you sure you want to reconnect?",
"reconnect_your_hardware_wallet": "Reconnect your Hardware Wallet",
"reconnection": "Reconnection",
"red_dark_theme": "Red Dark Theme",
"red_light_theme": "Red Light Theme",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "Dirección del receptor",
"reconnect": "Volver a conectar",
"reconnect_alert_text": "¿Estás seguro de reconectar?",
"reconnect_your_hardware_wallet": "Vuelva a conectar su billetera de hardware",
"reconnection": "Reconexión",
"red_dark_theme": "Tema rojo oscuro",
"red_light_theme": "Tema de la luz roja",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Adresse bénéficiaire",
"reconnect": "Reconnecter",
"reconnect_alert_text": "Êtes vous certain de vouloir vous reconnecter ?",
"reconnect_your_hardware_wallet": "Reconnectez votre portefeuille matériel",
"reconnection": "Reconnexion",
"red_dark_theme": "Thème rouge sombre",
"red_light_theme": "Thème rouge clair",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ha.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "Adireshin mai karɓa",
"reconnect": "Sake haɗawa",
"reconnect_alert_text": "Shin kun tabbata kuna son sake haɗawa?",
"reconnect_your_hardware_wallet": "Sake kunnawa kayan aiki",
"reconnection": "Sake haɗawa",
"red_dark_theme": "Ja duhu taken",
"red_light_theme": "Ja mai haske",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "प्राप्तकर्ता का पता",
"reconnect": "रिकनेक्ट",
"reconnect_alert_text": "क्या आप पुन: कनेक्ट होना सुनिश्चित करते हैं?",
"reconnect_your_hardware_wallet": "अपने हार्डवेयर वॉलेट को फिर से कनेक्ट करें",
"reconnection": "पुनर्संयोजन",
"red_dark_theme": "लाल डार्क थीम",
"red_light_theme": "लाल प्रकाश थीम",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Primateljeva adresa",
"reconnect": "Ponovno povezivanje",
"reconnect_alert_text": "Jeste li sigurni da se želite ponovno povezati?",
"reconnect_your_hardware_wallet": "Ponovno spojite svoj hardverski novčanik",
"reconnection": "Ponovno povezivanje",
"red_dark_theme": "Crvena tamna tema",
"red_light_theme": "Tema crvenog svjetla",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hy.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Ստացողի հասցե",
"reconnect": "Վերակապվել",
"reconnect_alert_text": "Դուք վստահ եք, որ ուզում եք վերակապվել?",
"reconnect_your_hardware_wallet": "Միացրեք ձեր ապարատային դրամապանակը",
"reconnection": "Վերակապում",
"red_dark_theme": "Կարմիր մութ տեսք",
"red_light_theme": "Կարմիր պայծառ տեսք",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "Alamat penerima",
"reconnect": "Sambungkan kembali",
"reconnect_alert_text": "Apakah Anda yakin ingin menyambungkan kembali?",
"reconnect_your_hardware_wallet": "Hubungkan kembali dompet perangkat keras Anda",
"reconnection": "Koneksi kembali",
"red_dark_theme": "Tema gelap merah",
"red_light_theme": "Tema lampu merah",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "Indirizzo di destinazione",
"reconnect": "Riconnetti",
"reconnect_alert_text": "Sei sicuro di volerti riconnettere?",
"reconnect_your_hardware_wallet": "Ricollega il tuo portafoglio hardware",
"reconnection": "Riconnessione",
"red_dark_theme": "Red Dark Theme",
"red_light_theme": "Tema della luce rossa",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "受信者のアドレス",
"reconnect": "再接続",
"reconnect_alert_text": "再接続しますか?",
"reconnect_your_hardware_wallet": "ハードウェアウォレットを再接続します",
"reconnection": "再接続",
"red_dark_theme": "赤い暗いテーマ",
"red_light_theme": "赤色光のテーマ",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ko.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "받는 사람 주소",
"reconnect": "다시 연결",
"reconnect_alert_text": "다시 연결 하시겠습니까?",
"reconnect_your_hardware_wallet": "하드웨어 지갑을 다시 연결하십시오",
"reconnection": "재 연결",
"red_dark_theme": "빨간 어두운 테마",
"red_light_theme": "빨간불 테마",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_my.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "လက်ခံသူလိပ်စာ",
"reconnect": "ပြန်လည်ချိတ်ဆက်ပါ။",
"reconnect_alert_text": "ပြန်လည်ချိတ်ဆက်လိုသည်မှာ သေချာပါသလား။ ?",
"reconnect_your_hardware_wallet": "သင့်ရဲ့ hardware ပိုက်ဆံအိတ်ကိုပြန်လည်ချိတ်ဆက်ပါ",
"reconnection": "ပြန်လည်ချိတ်ဆက်မှု",
"red_dark_theme": "အနီရောင်မှောင်မိုက်ဆောင်ပုဒ်",
"red_light_theme": "အနီရောင်အလင်းအကြောင်းအရာ",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_nl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Adres ontvanger",
"reconnect": "Sluit",
"reconnect_alert_text": "Weet u zeker dat u opnieuw verbinding wilt maken?",
"reconnect_your_hardware_wallet": "Sluit uw hardware -portemonnee opnieuw aan",
"reconnection": "Reconnection",
"red_dark_theme": "Rood donker thema",
"red_light_theme": "Rood licht thema",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Adres odbiorcy",
"reconnect": "Połącz ponownie",
"reconnect_alert_text": "Czy na pewno ponownie się ponownie połączysz?",
"reconnect_your_hardware_wallet": "Ponownie podłącz portfel sprzętowy",
"reconnection": "Ponowne łączenie",
"red_dark_theme": "Czerwony Mroczny motyw",
"red_light_theme": "Motyw czerwony światło",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "Endereço do destinatário",
"reconnect": "Reconectar",
"reconnect_alert_text": "Você tem certeza de que deseja reconectar?",
"reconnect_your_hardware_wallet": "Reconecte sua carteira de hardware",
"reconnection": "Reconectar",
"red_dark_theme": "Tema escuro vermelho",
"red_light_theme": "Tema da luz vermelha",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "Адрес получателя",
"reconnect": "Переподключиться",
"reconnect_alert_text": "Вы хотите переподключиться?",
"reconnect_your_hardware_wallet": "Воссоедините свой аппаратный кошелек",
"reconnection": "Переподключение",
"red_dark_theme": "Красная темная тема",
"red_light_theme": "Тема красного света",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_th.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "ที่อยู่ผู้รับ",
"reconnect": "เชื่อมต่อใหม่",
"reconnect_alert_text": "คุณแน่ใจหรือไม่ว่าต้องการเชื่อมต่อใหม่?",
"reconnect_your_hardware_wallet": "เชื่อมต่อกระเป๋าเงินฮาร์ดแวร์ของคุณอีกครั้ง",
"reconnection": "เชื่อมต่อใหม่",
"red_dark_theme": "ธีมสีแดงเข้ม",
"red_light_theme": "ธีมแสงสีแดง",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_tl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Address ng tatanggap",
"reconnect": "Kumonekta muli",
"reconnect_alert_text": "Sigurado ka bang gusto mong kumonekta uli?",
"reconnect_your_hardware_wallet": "Ikonekta muli ang iyong wallet ng hardware",
"reconnection": "Muling pagkakakonekta",
"red_dark_theme": "Red Dark Theme",
"red_light_theme": "Red Light Theme",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_tr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Alıcı adresi",
"reconnect": "Yeniden Bağlan",
"reconnect_alert_text": "Yeniden bağlanmak istediğinden emin misin?",
"reconnect_your_hardware_wallet": "Donanım cüzdanınızı yeniden bağlayın",
"reconnection": "Yeniden bağlantı",
"red_dark_theme": "Kırmızı Karanlık Tema",
"red_light_theme": "Kırmızı Işık Teması",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_uk.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "Адреса одержувача",
"reconnect": "Перепідключитися",
"reconnect_alert_text": "Ви хочете перепідключитися?",
"reconnect_your_hardware_wallet": "Повторно підключіть свій апаратний гаманець",
"reconnection": "Перепідключення",
"red_dark_theme": "Червона темна тема",
"red_light_theme": "Тема червоного світла",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ur.arb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
"recipient_address": "وصول کنندہ کا پتہ",
"reconnect": "دوبارہ جڑیں۔",
"reconnect_alert_text": "کیا آپ واقعی دوبارہ جڑنا چاہتے ہیں؟",
"reconnect_your_hardware_wallet": "اپنے ہارڈ ویئر پرس کو دوبارہ مربوط کریں",
"reconnection": "دوبارہ رابطہ",
"red_dark_theme": "ریڈ ڈارک تھیم",
"red_light_theme": "ریڈ لائٹ تھیم",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_vi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@
"recipient_address": "Địa chỉ người nhận",
"reconnect": "Kết nối lại",
"reconnect_alert_text": "Bạn có chắc chắn muốn kết nối lại không?",
"reconnect_your_hardware_wallet": "Kết nối lại ví phần cứng của bạn",
"reconnection": "Kết nối lại",
"red_dark_theme": "Chủ đề tối đỏ",
"red_light_theme": "Chủ đề sáng đỏ",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_yo.arb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@
"recipient_address": "Àdírẹ́sì olùgbà",
"reconnect": "Ṣe àtúnse",
"reconnect_alert_text": "Ṣó dá ẹ lójú pé ẹ fẹ́ ṣe àtúnse?",
"reconnect_your_hardware_wallet": "Ṣe atunṣe apamọwọ ohun elo rẹ",
"reconnection": "Àtúnṣe",
"red_dark_theme": "Akọle dudu pupa",
"red_light_theme": "Akori ina pupa",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
"recipient_address": "收件人地址",
"reconnect": "重新连接",
"reconnect_alert_text": "您确定要重新连接吗?",
"reconnect_your_hardware_wallet": "重新连接您的硬件钱包",
"reconnection": "重新连接",
"red_dark_theme": "红色的黑暗主题",
"red_light_theme": "红灯主题",
Expand Down

0 comments on commit 883ecec

Please sign in to comment.