translations + mweb node fixes

This commit is contained in:
fossephate 2024-10-29 11:03:04 -07:00
parent ea301668b7
commit 352ec759c7
31 changed files with 37 additions and 10 deletions

View file

@ -48,6 +48,7 @@ import 'package:cw_mweb/cw_mweb.dart';
import 'package:bitcoin_base/src/crypto/keypair/sign_utils.dart';
import 'package:pointycastle/ecc/api.dart';
import 'package:pointycastle/ecc/curves/secp256k1.dart';
import 'package:shared_preferences/shared_preferences.dart';
part 'litecoin_wallet.g.dart';
@ -288,16 +289,14 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
await (walletAddresses as LitecoinWalletAddresses).ensureMwebAddressUpToIndexExists(1020);
}
// String getMwebNodeUriFromPrefs() {
// // from preferences_key.dart "defaultNanoRep" key:
// return prefs.getString("mweb_node_uri") ?? "ltc-electrum.cakewallet.com:9333";
// }
@action
@override
Future<void> connectToNode({required Node node}) async {
await super.connectToNode(node: node);
// await CwMweb.setNodeUriOverride(settingsStore.mwebNodeUri);
final prefs = await SharedPreferences.getInstance();
final mwebNodeUri = prefs.getString("mwebNodeUri") ?? "ltc-electrum.cakewallet.com:9333";
await CwMweb.setNodeUriOverride(mwebNodeUri);
}
@action

View file

@ -53,7 +53,7 @@ class MwebLogsPage extends BasePage {
child: Observer(
builder: (_) => LoadingPrimaryButton(
onPressed: () => onExportLogs(context),
text: S.of(context).export_backup,
text: S.of(context).export_logs,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
),

View file

@ -35,7 +35,7 @@ class MwebNodePage extends BasePage {
Positioned(
child: Observer(
builder: (_) => LoadingPrimaryButton(
onPressed: save,
onPressed: () => save(context),
text: S.of(context).save,
color: Theme.of(context).primaryColor,
textColor: Colors.white,
@ -49,8 +49,8 @@ class MwebNodePage extends BasePage {
);
}
void save() {
void save(BuildContext context) {
mwebSettingsViewModelBase.setMwebNodeUri(_nodeUriController.text);
Navigator.pop(context);
}
}

View file

@ -295,6 +295,7 @@
"expiresOn": "ﻲﻓ ﻪﺘﻴﺣﻼﺻ ﻲﻬﺘﻨﺗ",
"expiry_and_validity": "انتهاء الصلاحية والصلاحية",
"export_backup": "تصدير نسخة احتياطية",
"export_logs": "سجلات التصدير",
"extra_id": "معرف إضافي:",
"extracted_address_content": "سوف ترسل الأموال إلى\n${recipient_name}",
"failed_authentication": "${state_error} فشل المصادقة.",

View file

@ -295,6 +295,7 @@
"expiresOn": "Изтича на",
"expiry_and_validity": "Изтичане и валидност",
"export_backup": "Експортиране на резервно копие",
"export_logs": "Експортни дневници",
"extra_id": "Допълнително ID:",
"extracted_address_content": "Ще изпратите средства на \n${recipient_name}",
"failed_authentication": "Неуспешно удостоверяване. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Vyprší dne",
"expiry_and_validity": "Vypršení a platnost",
"export_backup": "Exportovat zálohu",
"export_logs": "Vývozní protokoly",
"extra_id": "Extra ID:",
"extracted_address_content": "Prostředky budete posílat na\n${recipient_name}",
"failed_authentication": "Ověřování selhalo. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Läuft aus am",
"expiry_and_validity": "Ablauf und Gültigkeit",
"export_backup": "Sicherung exportieren",
"export_logs": "Exportprotokolle",
"extra_id": "Extra ID:",
"extracted_address_content": "Sie senden Geld an\n${recipient_name}",
"failed_authentication": "Authentifizierung fehlgeschlagen. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Expires on",
"expiry_and_validity": "Expiry and Validity",
"export_backup": "Export backup",
"export_logs": "Export logs",
"extra_id": "Extra ID:",
"extracted_address_content": "You will be sending funds to\n${recipient_name}",
"failed_authentication": "Failed authentication. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Expira el",
"expiry_and_validity": "Vencimiento y validez",
"export_backup": "Exportar copia de seguridad",
"export_logs": "Registros de exportación",
"extra_id": "ID adicional:",
"extracted_address_content": "Enviará fondos a\n${recipient_name}",
"failed_authentication": "Autenticación fallida. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Expire le",
"expiry_and_validity": "Expiration et validité",
"export_backup": "Exporter la sauvegarde",
"export_logs": "Journaux d'exportation",
"extra_id": "ID supplémentaire :",
"extracted_address_content": "Vous allez envoyer des fonds à\n${recipient_name}",
"failed_authentication": "Échec d'authentification. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Yana ƙarewa",
"expiry_and_validity": "Karewa da inganci",
"export_backup": "Ajiyayyen fitarwa",
"export_logs": "Injin fitarwa",
"extra_id": "Karin ID:",
"extracted_address_content": "Za ku aika da kudade zuwa\n${recipient_name}",
"failed_authentication": "Binne wajen shiga. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "पर समय सीमा समाप्त",
"expiry_and_validity": "समाप्ति और वैधता",
"export_backup": "निर्यात बैकअप",
"export_logs": "निर्यात लॉग",
"extra_id": "अतिरिक्त आईडी:",
"extracted_address_content": "आपको धनराशि भेजी जाएगी\n${recipient_name}",
"failed_authentication": "प्रमाणीकरण विफल. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Istječe",
"expiry_and_validity": "Istek i valjanost",
"export_backup": "Izvezi sigurnosnu kopiju",
"export_logs": "Izvozni trupci",
"extra_id": "Dodatni ID:",
"extracted_address_content": "Poslat ćete sredstva primatelju\n${recipient_name}",
"failed_authentication": "Autentifikacija neuspješna. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Վավերականությունը լրանում է",
"expiry_and_validity": "Վավերականություն և լրացում",
"export_backup": "Արտահանել կրկնօրինակը",
"export_logs": "Արտահանման տեղեկամատյաններ",
"extra_id": "Լրացուցիչ ID",
"extracted_address_content": "Դուք կուղարկեք գումար ${recipient_name}",
"failed_authentication": "Վավերացումը ձախողվեց. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Kadaluarsa pada",
"expiry_and_validity": "Kedaluwarsa dan validitas",
"export_backup": "Ekspor cadangan",
"export_logs": "Log ekspor",
"extra_id": "ID tambahan:",
"extracted_address_content": "Anda akan mengirim dana ke\n${recipient_name}",
"failed_authentication": "Otentikasi gagal. ${state_error}",

View file

@ -296,6 +296,7 @@
"expiresOn": "Scade il",
"expiry_and_validity": "Scadenza e validità",
"export_backup": "Esporta backup",
"export_logs": "Registri di esportazione",
"extra_id": "Extra ID:",
"extracted_address_content": "Invierai i tuoi fondi a\n${recipient_name}",
"failed_authentication": "Autenticazione fallita. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "有効期限は次のとおりです",
"expiry_and_validity": "有効期限と有効性",
"export_backup": "バックアップのエクスポート",
"export_logs": "ログをエクスポートします",
"extra_id": "追加ID:",
"extracted_address_content": "に送金します\n${recipient_name}",
"failed_authentication": "認証失敗. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "만료 날짜",
"expiry_and_validity": "만료와 타당성",
"export_backup": "백업 내보내기",
"export_logs": "내보내기 로그",
"extra_id": "추가 ID:",
"extracted_address_content": "당신은에 자금을 보낼 것입니다\n${recipient_name}",
"failed_authentication": "인증 실패. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "သက်တမ်းကုန်သည်။",
"expiry_and_validity": "သက်တမ်းကုန်ဆုံးခြင်းနှင့်တရားဝင်မှု",
"export_backup": "အရန်ကူးထုတ်ရန်",
"export_logs": "ပို့ကုန်မှတ်တမ်းများ",
"extra_id": "အပို ID-",
"extracted_address_content": "သင်သည် \n${recipient_name} သို့ ရန်ပုံငွေများ ပေးပို့ပါမည်",
"failed_authentication": "အထောက်အထားစိစစ်ခြင်း မအောင်မြင်ပါ။. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Verloopt op",
"expiry_and_validity": "Vervallen en geldigheid",
"export_backup": "Back-up exporteren",
"export_logs": "Exporteer logboeken",
"extra_id": "Extra ID:",
"extracted_address_content": "U stuurt geld naar\n${recipient_name}",
"failed_authentication": "Mislukte authenticatie. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Upływa w dniu",
"expiry_and_validity": "Wygaśnięcie i ważność",
"export_backup": "Eksportuj kopię zapasową",
"export_logs": "Dzienniki eksportu",
"extra_id": "Dodatkowy ID:",
"extracted_address_content": "Wysyłasz środki na\n${recipient_name}",
"failed_authentication": "Nieudane uwierzytelnienie. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Expira em",
"expiry_and_validity": "Expiração e validade",
"export_backup": "Backup de exportação",
"export_logs": "Exportar logs",
"extra_id": "ID extra:",
"extracted_address_content": "Você enviará fundos para\n${recipient_name}",
"failed_authentication": "Falha na autenticação. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Годен до",
"expiry_and_validity": "Истечение и достоверность",
"export_backup": "Экспорт резервной копии",
"export_logs": "Экспортные журналы",
"extra_id": "Дополнительный ID:",
"extracted_address_content": "Вы будете отправлять средства\n${recipient_name}",
"failed_authentication": "Ошибка аутентификации. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "หมดอายุวันที่",
"expiry_and_validity": "หมดอายุและถูกต้อง",
"export_backup": "ส่งออกข้อมูลสำรอง",
"export_logs": "บันทึกการส่งออก",
"extra_id": "ไอดีเพิ่มเติม:",
"extracted_address_content": "คุณกำลังจะส่งเงินไปยัง\n${recipient_name}",
"failed_authentication": "การยืนยันสิทธิ์ล้มเหลว ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Mag-e-expire sa",
"expiry_and_validity": "Pag-expire at Bisa",
"export_backup": "I-export ang backup",
"export_logs": "Mga log ng pag -export",
"extra_id": "Dagdag na ID:",
"extracted_address_content": "Magpapadala ka ng pondo sa\n${recipient_name}",
"failed_authentication": "Nabigo ang pagpapatunay. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Tarihinde sona eriyor",
"expiry_and_validity": "Sona erme ve geçerlilik",
"export_backup": "Yedeği dışa aktar",
"export_logs": "Dışa aktarma günlükleri",
"extra_id": "Ekstra ID:",
"extracted_address_content": "Parayı buraya gönderceksin:\n${recipient_name}",
"failed_authentication": "Doğrulama başarısız oldu. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "Термін дії закінчується",
"expiry_and_validity": "Закінчення та обгрунтованість",
"export_backup": "Експортувати резервну копію",
"export_logs": "Експортні журнали",
"extra_id": "Додатковий ID:",
"extracted_address_content": "Ви будете відправляти кошти\n${recipient_name}",
"failed_authentication": "Помилка аутентифікації. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "ﺩﺎﻌﯿﻣ ﯽﻣﺎﺘﺘﺧﺍ",
"expiry_and_validity": "میعاد ختم اور صداقت",
"export_backup": "بیک اپ برآمد کریں۔",
"export_logs": "نوشتہ جات برآمد کریں",
"extra_id": "اضافی ID:",
"extracted_address_content": "آپ فنڈز بھیج رہے ہوں گے\n${recipient_name}",
"failed_authentication": "ناکام تصدیق۔ ${state_error}",

View file

@ -296,6 +296,7 @@
"expiresOn": "Hết hạn vào",
"expiry_and_validity": "Hạn và hiệu lực",
"export_backup": "Xuất sao lưu",
"export_logs": "Nhật ký xuất khẩu",
"extra_id": "ID bổ sung:",
"extracted_address_content": "Bạn sẽ gửi tiền cho\n${recipient_name}",
"failed_authentication": "Xác thực không thành công. ${state_error}",

View file

@ -296,6 +296,7 @@
"expiresOn": "Ipari lori",
"expiry_and_validity": "Ipari ati idaniloju",
"export_backup": "Sún ẹ̀dà nípamọ́ síta",
"export_logs": "Wọle si okeere",
"extra_id": "Àmì ìdánimọ̀ tó fikún:",
"extracted_address_content": "Ẹ máa máa fi owó ránṣẹ́ sí\n${recipient_name}",
"failed_authentication": "Ìfẹ̀rílàdí pipòfo. ${state_error}",

View file

@ -295,6 +295,7 @@
"expiresOn": "到期",
"expiry_and_validity": "到期和有效性",
"export_backup": "导出备份",
"export_logs": "导出日志",
"extra_id": "额外ID:",
"extracted_address_content": "您将汇款至\n${recipient_name}",
"failed_authentication": "身份验证失败. ${state_error}",