Skip to content

Commit

Permalink
fix: update pro lite card i18n (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
guowei0105 authored Jul 24, 2024
1 parent d49fbb0 commit 2c7241a
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 56 deletions.
3 changes: 1 addition & 2 deletions core/src/apps/management/recovery_device/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ async def recovery_device(
# return await recovery_process(ctx)

try:
await _continue_dialog(ctx, msg)

# await _continue_dialog(ctx, msg)
if isinstance(ctx, wire.DummyContext):
utils.play_dead()

Expand Down
38 changes: 19 additions & 19 deletions core/src/trezor/lvglui/i18n/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@
FORM__FINGER_STR = 721
# Charging
MSG__CHARGING = 722
# Scan transaction QR code or sign message
# Scan the QR Code displayed on the app
CONTENT__SCAN_THE_QR_CODE_DISPLAYED_ON_THE_APP = 723
# Unsupported data format
TITLE__DATA_FORMAT_NOT_SUPPORT = 724
Expand Down Expand Up @@ -1621,7 +1621,7 @@
CONTENT__ARE_YOU_SURE_TO_DISABLE_AIRGAP_MODE = 741
# Select the chain you need, then click Create button.
SUBTITLE__ADD_ACCOUNT_2__TUTORIAL_AFTER_INIT = 742
# ETH and EVM‒compatible chains
# ETH and EVM‒compatible networks
CONTENT__ETH_AND_EVM_POWERED_NETWORK = 743
# fingerprint not recognized, try again
MSG__FINGERPRINT_NOT_RECOGNIZED_TRY_AGAIN = 744
Expand Down Expand Up @@ -1724,36 +1724,36 @@
TITLE_CONFIRM_ADDRESS_DESC = 786
# BTC and EVM‒compatible networks
CONTENT__BTC_AND_EVM_COMPATIBLE_NETWORKS = 787
# ETH and EVM‒compatible networks
CONTENT__ETH_AND_EVM_COMPATIBLE_NETWORKS = 788
# Open OneKey and scan the QR code below
CONTENT__OPEN_ONEKEY_AND_SCAN_THE_QR_CODE_BELOW = 789
CONTENT__OPEN_ONEKEY_AND_SCAN_THE_QR_CODE_BELOW = 788
# Export Account
CONTENT__EXPORT_ACCOUNT = 790
CONTENT__EXPORT_ACCOUNT = 789
# Connecting...
TITLE__CONNECTING = 791
TITLE__CONNECTING = 790
# Set OneKey Lite PIN
TITLE__SET_ONEKEY_LITE_PIN = 792
TITLE__SET_ONEKEY_LITE_PIN = 791
# I understand that the backup will be overwritten
FORM__I_UNDERSTAND_THAT_THE_BACKUP_WILL_BE_OVERWRITTEN = 793
FORM__I_UNDERSTAND_THAT_THE_BACKUP_WILL_BE_OVERWRITTEN = 792
# Confirm OneKey Lite PIN
TITLE__CONFIRM_ONEKEY_LITE_PIN = 794
TITLE__CONFIRM_ONEKEY_LITE_PIN = 793
# PINs do not match, please reconfirm.
CONTENT__PINS_DO_NOT_MATCH = 795
CONTENT__PINS_DO_NOT_MATCH = 794
# Connect again
TITLE__CONNECT_AGAIN = 796
TITLE__CONNECT_AGAIN = 795
# Eixt
BUTTON__EXIT = 797
BUTTON__EXIT = 796
# The two OneKey Lite used for connection are not the same.
CONTENT__THE_TWO_ONEKEY_LITE_USED_FOR_CONNECTION_ARE_NOT_THE_SAME = 798
CONTENT__THE_TWO_ONEKEY_LITE_USED_FOR_CONNECTION_ARE_NOT_THE_SAME = 797
# Exit Backup Process?
TITLE__EXIT_BACKUP_PROCESS = 799
TITLE__EXIT_BACKUP_PROCESS = 798
# If you exit now, you will need to re-verify your recovery phrase when you re
# -enter. Are you sure you want to exit?
TITLE__EXIT_BACKUP_PROCESS_DESC = 800
TITLE__EXIT_BACKUP_PROCESS_DESC = 799
# Unsupported Recovery Phrase
TITLE__UNSUPPORTED_RECOVERY_PHRASE = 801
TITLE__UNSUPPORTED_RECOVERY_PHRASE = 800
# The current hardware wallet only supports 12, 18, and 24-word recovery phras
# es. This Lite backup cannot be restored.
TITLE__UNSUPPORTED_RECOVERY_PHRASE_DESC = 802
# es.\nThis Lite backup cannot be restored.
TITLE__UNSUPPORTED_RECOVERY_PHRASE_DESC = 801
# Open OneKey and scan the QR code, supporting BTC and EVM networks.
CONTENT__OPEN_ONEKEY_SCAN_THE_QRCODE = 802
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey-Wallet",
"Fingerabdruck {}",
"Aufladen",
"QR-Code scannen oder Nachricht signieren",
"Scannen Sie den auf der App angezeigten QR-Code",
"Nicht unterstütztes Datenformat",
"Der QR-Codetyp wird nicht unterstützt. Bitte versuchen Sie es erneut.",
"Ungültige Transaktion",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Adresse bestätigen",
"Kehren Sie zur App zurück und scannen Sie den untenstehenden QR-Code.",
"BTC- und EVM-kompatible Netzwerke",
"ETH‒ und EVM‒kompatible Netzwerke",
"Öffnen Sie OneKey und scannen Sie den untenstehenden QR-Code",
"Konto exportieren",
"Verbinden ...",
Expand All @@ -802,6 +801,7 @@
"Sicherungsvorgang beenden?",
"Wenn Sie jetzt beenden, müssen Sie Ihre Wiederherstellungsphrase beim erneuten Aufrufen erneut bestätigen. Möchten Sie wirklich beenden?",
"Nicht unterstützte Wiederherstellungsphrase",
"Die aktuelle Hardware-Wallet unterstützt nur Wiederherstellungsphrasen mit 12, 18 und 24 Wörtern. Diese Lite-Sicherung kann nicht wiederhergestellt werden.",
"Die aktuelle Hardware-Wallet unterstützt nur Wiederherstellungsphrasen mit 12, 18 und 24 Wörtern.\nDiese Lite-Sicherung kann nicht wiederhergestellt werden.",
"Öffnen Sie OneKey und scannen Sie den QR-Code. BTC- und EVM-Netzwerke werden unterstützt.",
]
# fmt: on
8 changes: 4 additions & 4 deletions core/src/trezor/lvglui/i18n/locales/en.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"Finger {}",
"Charging",
"Scan transaction QR code or sign message",
"Scan the QR Code displayed on the app",
"Unsupported data format",
"QR code type not support, please try again.",
"Invalid Transaction",
Expand All @@ -743,7 +743,7 @@
"Disable Air Gap",
"Are you sure to disable Air Gap mode? After disable, it will be able to connect your device via USB or Bluetooth.",
"Select the chain you need, then click Create button.",
"ETH and EVM‒compatible chains",
"ETH and EVM‒compatible networks",
"fingerprint not recognized, try again",
"Use fingerprint or tap to unlock",
"SE Firmware",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Confirm Address",
"Return to the app, and scan the QR code below.",
"BTC and EVM‒compatible networks",
"ETH and EVM‒compatible networks",
"Open OneKey and scan the QR code below",
"Export Account",
"Connecting...",
Expand All @@ -802,6 +801,7 @@
"Exit Backup Process?",
"If you exit now, you will need to re-verify your recovery phrase when you re-enter. Are you sure you want to exit?",
"Unsupported Recovery Phrase",
"The current hardware wallet only supports 12, 18, and 24-word recovery phrases. This Lite backup cannot be restored.",
"The current hardware wallet only supports 12, 18, and 24-word recovery phrases.\nThis Lite backup cannot be restored.",
"Open OneKey and scan the QR code, supporting BTC and EVM networks.",
]
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"Huella dactilar {}",
"Cargando",
"Escanee el código QR de la transacción o firme el mensaje",
"Escanee el código QR que se muestra en la aplicación",
"Formato de datos no admitido",
"El tipo de código QR no es compatible. Inténtelo de nuevo.",
"Transacción inválida",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Confirmar dirección",
"Regresa a la aplicación y escanea el código QR que se muestra a continuación.",
"Redes compatibles con BTC y EVM",
"Redes compatibles con ETH y EVM",
"Abra OneKey y escanee el código QR a continuación",
"Exportar cuenta",
"Conectando...",
Expand All @@ -802,6 +801,7 @@
"¿Salir del proceso de copia de seguridad?",
"Si sale ahora, deberá volver a verificar su frase de recuperación cuando vuelva a ingresar. ¿Seguro que quieres salir?",
"Frase de recuperación no compatible",
"La actual cartera de hardware solo admite frases de recuperación de 12, 18 y 24 palabras. Esta copia de seguridad Lite no se puede restaurar.",
"La actual cartera de hardware solo admite frases de recuperación de 12, 18 y 24 palabras.\nEsta copia de seguridad Lite no se puede restaurar.",
"Abra OneKey y escanee el código QR, compatible con redes BTC y EVM.",
]
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"Empreinte digitale {}",
"Mise en charge",
"Scannez le code QR de la transaction ou signez le message",
"Scannez le code QR affiché sur l'application",
"Format de données non pris en charge",
"Le type de code QR n'est pas pris en charge, veuillez réessayer.",
"Transaction invalide",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Confirmer l'adresse",
"Retournez à l'application et scannez le code QR ci-dessous.",
"Réseaux compatibles BTC et EVM",
"Réseaux compatibles ETH et EVM",
"Ouvrez OneKey et scannez le code QR ci-dessous",
"Exporter le compte",
"Connexion...",
Expand All @@ -802,6 +801,7 @@
"Quitter le processus de sauvegarde ?",
"Si vous quittez maintenant, vous devrez revérifier votre phrase de récupération lorsque vous reviendrez. Êtes-vous sûr de vouloir quitter?",
"Phrase de récupération non prise en charge",
"Le portefeuille matériel actuel ne prend en charge que les phrases de récupération de 12, 18 et 24 mots. Cette sauvegarde Lite ne peut pas être restaurée.",
"Le portefeuille matériel actuel ne prend en charge que les phrases de récupération de 12, 18 et 24 mots.\nCette sauvegarde Lite ne peut pas être restaurée.",
"Ouvrez OneKey et scannez le code QR, prenant en charge les réseaux BTC et EVM.",
]
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/it.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"Impronta digitale {}",
"In carica",
"Scansiona il codice QR della transazione o firma il messaggio",
"Scansiona il codice QR visualizzato sull'app",
"Formato dati non supportato",
"Il tipo di codice QR non è supportato, riprova.",
"Transazione non valida",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Conferma Indirizzo",
"Torna all'app e scansiona il codice QR qui sotto.",
"Reti compatibili con BTC ed EVM",
"Reti compatibili con ETH ed EVM",
"Apri OneKey e scansiona il codice QR qui sotto",
"Esporta Account",
"Connessione in corso...",
Expand All @@ -802,6 +801,7 @@
"Uscire dal processo di backup?",
"Se esci adesso, dovrai verificare nuovamente la frase di recupero quando rientri. Sei sicuro di voler uscire?",
"Frase di recupero non supportata",
"Il portafoglio hardware attuale supporta solo frasi di recupero da 12, 18 e 24 parole. Questo backup Lite non può essere ripristinato.",
"Il portafoglio hardware attuale supporta solo frasi di recupero da 12, 18 e 24 parole.\nQuesto backup Lite non può essere ripristinato.",
"Apri OneKey e scansiona il codice QR, supportando le reti BTC ed EVM.",
]
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/ja.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"指紋 {}",
"充電",
"QRコードをスキャンまたはメッセージに署名",
"アプリに表示されているQRコードをスキャンしてください",
"サポートされていないデータ形式",
"QR コードの種類はサポートされていません。もう一度お試しください。",
"無効なトランザクション",
Expand Down Expand Up @@ -788,7 +788,6 @@
"住所の確認",
"アプリに戻り、以下のQRコードをスキャンしてください。",
"BTC および EVM 互換ネットワーク",
"ETHおよびEVM互換ネットワーク",
"OneKeyを開いて下のQRコードをスキャンしてください",
"アカウントをエクスポート",
"接続中...",
Expand All @@ -802,6 +801,7 @@
"バックアッププロセスを終了しますか?",
"今終了すると、再度ログインするときに回復フレーズを再確認する必要があります。終了してもよろしいですか?",
"サポートされていないリカバリーフレーズ",
"現在のハードウェアウォレットは、12語、18語、24語のリカバリーフレーズのみをサポートしています。このLiteバックアップは復元できません。",
"現在のハードウェアウォレットは、12語、18語、24語のリカバリーフレーズのみをサポートしています。\nこのLiteバックアップは復元できません。",
"OneKey を開いて QR コードをスキャンします。BTC および EVM ネットワークをサポートします。",
]
# fmt: on
4 changes: 2 additions & 2 deletions core/src/trezor/lvglui/i18n/locales/ko.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"지문 {}",
"충전 중",
"거래 QR 코드를 스캔하거나 메시지에 서명하세요",
"앱에 표시된 QR 코드를 스캔하세요",
"지원되지 않는 데이터 형식",
"QR 코드 유형이 지원되지 않습니다. 다시 시도해 주세요.",
"잘못된 거래",
Expand Down Expand Up @@ -788,7 +788,6 @@
"주소 확인",
"앱으로 돌아가서 아래의 QR 코드를 스캔하세요.",
"BTC 및 EVM\u0036호환 네트워크",
"ETH 및 EVM 호환 네트워크",
"OneKey를 열고 아래 QR 코드를 스캔하세요.",
"계정 내보내기",
"연결 중...",
Expand All @@ -803,5 +802,6 @@
"지금 탈퇴하시면, 재가입 시 복구 문구를 다시 확인하셔야 합니다. 종료하시겠습니까?",
"지원되지 않는 복구 구문",
"현재 하드웨어 지갑은 12, 18, 24단어 복구 문구만 지원합니다. 이 Lite 백업은 복원할 수 없습니다.",
"OneKey를 열고 QR 코드를 스캔하여 BTC 및 EVM 네트워크를 지원하세요.",
]
# fmt: on
6 changes: 3 additions & 3 deletions core/src/trezor/lvglui/i18n/locales/ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"Отпечаток пальца {}",
"Зарядка",
"Сканируйте QR-код транзакции или подпишите сообщение",
"Отсканируйте QR-код, отображаемый в приложении",
"Неподдерживаемый формат данных",
"Тип QR-кода не поддерживается. Повторите попытку.",
"Недействительная транзакция",
Expand Down Expand Up @@ -788,7 +788,6 @@
"Подтвердите адрес",
"Вернитесь в приложение и отсканируйте QR-код ниже.",
"Сети, совместимые с BTC и EVM",
"Сети, совместимые с ETH и EVM",
"Откройте OneKey и отсканируйте QR-код ниже.",
"Экспорт аккаунта",
"Подключение...",
Expand All @@ -802,6 +801,7 @@
"Выйти из процесса резервного копирования?",
"Если вы выйдете сейчас, вам нужно будет повторно подтвердить фразу восстановления при повторном входе. Вы уверены, что хотите выйти?",
"Неподдерживаемая фраза восстановления",
"Текущий аппаратный кошелек поддерживает только восстановительные фразы из 12, 18 и 24 слов. Этот Lite резервный копии не может быть восстановлен.",
"Текущий аппаратный кошелек поддерживает только восстановительные фразы из 12, 18 и 24 слов.\nЭтот Lite резервный копии не может быть восстановлен.",
"Откройте OneKey и отсканируйте QR-код, поддерживающий сети BTC и EVM.",
]
# fmt: on
8 changes: 4 additions & 4 deletions core/src/trezor/lvglui/i18n/locales/zh_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"指纹 {}",
"充电中",
"扫描交易二维码或进行签名",
"扫描 app 上显示的二维码",
"不支持的数据\n格式",
"不支持的二维码类型,请重试",
"无效的交易",
Expand All @@ -743,7 +743,7 @@
"禁用 Air Gap",
"要关闭 Air Gap 模式吗?关闭后,将允许通过蓝牙和 USB 连接此设备。",
"选择你需要的链,然后点击创建按钮。",
"ETH 和 EVM 兼容链",
"ETH 和 EVM 兼容网络",
"指纹识别失败,请重试",
"轻触屏幕或指纹解锁",
"SE 固件",
Expand Down Expand Up @@ -788,10 +788,9 @@
"确认地址",
"返回 APP,并扫描下方的二维码。",
"BTC 和 EVM 兼容网络",
"ETH 和 EVM 兼容网络",
"打开 OneKey,扫描下方二维码",
"导出账户",
"连接中……",
"连接中...",
"设置 OneKey Lite PIN",
"我已知晓备份将被覆盖",
"确认 OneKey Lite PIN",
Expand All @@ -803,5 +802,6 @@
"退出后重新进入需要再次验证助记词,请确认是否要退出",
"不支持的助记词",
"当前硬件钱包仅支持 12、18 和 24 位助记词,无法恢复此 Lite 备份。",
"打开 OneKey 扫描二维码,支持 BTC 和 EVM 网络。",
]
# fmt: on
8 changes: 4 additions & 4 deletions core/src/trezor/lvglui/i18n/locales/zh_hk.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"OneKey Wallet",
"指紋 {}",
"充電中",
"掃描交易二維碼或進行簽名",
"掃描 app 上顯示的 QR 碼",
"不支持的數據\n格式",
"不支持的二維碼類型,請重試",
"無效的交易",
Expand All @@ -743,7 +743,7 @@
"禁用 Air Gap",
"要關閉 Air Gap 模式嗎?關閉後,將允許通過藍牙和 USB 連接此設備。",
"選擇你需要的鏈,然後點擊創建按鈕。",
"ETH 和 EVM 兼容鏈",
"ETH 和 EVM 相容網絡",
"指紋識別失敗,請重試",
"輕觸屏幕或指紋解鎖",
"SE 固件",
Expand Down Expand Up @@ -788,10 +788,9 @@
"確認地址",
"返回 APP,並掃描下方的 QR 碼。",
"BTC 和 EVM 相容網路",
"ETH 和 EVM 相容網絡",
"打開一鍵掃描下方二維碼",
"導出帳戶",
"連接中……",
"連接中...",
"設定 OneKey Lite PIN",
"我已知曉備份將被覆蓋",
"確認OneKey Lite PIN",
Expand All @@ -803,5 +802,6 @@
"退出後重新進入需要再次驗證助記詞,請確認是否要退出",
"不支持的助記詞",
"當前硬件錢包僅支持 12、18 和 24 位助記詞,無法恢復此 Lite 備份。",
"開啟 OneKey 掃描二維碼,支援 BTC 和 EVM 網路。",
]
# fmt: on
2 changes: 1 addition & 1 deletion core/src/trezor/lvglui/scrs/nfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def parse_card_data(self, data):
class SearchDeviceScreen(FullSizeWindow):
def __init__(self):
super().__init__(
_(i18n_keys.TITLE__SEARCHING),
_(i18n_keys.TITLE__CONNECTING),
_(i18n_keys.CONTENT__KEEP_LITE_DEVICE_TOGETHER_BACKUP_COMPLETE),
cancel_text=_(i18n_keys.BUTTON__CANCEL),
anim_dir=0,
Expand Down
Loading

0 comments on commit 2c7241a

Please sign in to comment.