Skip to content

Commit e01716b

Browse files
authored
feat:Update Bluetooth pairing flow (#402)
1 parent b6ab910 commit e01716b

15 files changed

Lines changed: 533 additions & 99 deletions

File tree

core/src/trezor/lvglui/i18n/keys.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@
596596
# What is Recovery Phrase?
597597
TITLE__WHAT_IS_RECOVERY_PHRASE__GUIDE = 274
598598
# A human-readable "private key" to generate your wallet. A key to restore all
599-
# your crypto asset.
599+
# your crypto assets.
600600
SUBTITLE__WHAT_IS_RECOVERY_PHRASE__GUIDE = 275
601601
# Enable PIN Protection
602602
TITLE__ENABLE_PIN_PROTECTION__GUIDE = 276
@@ -2319,4 +2319,44 @@
23192319
# When enabled, entropy from both the MCU and secure element will be combined
23202320
# . Both methods meet cryptographic security standards.
23212321
BUTTON__USE_MULTIPLE_SOURCES_OF_ENTROPY_DESC = 1050
2322+
# Set Language
2323+
TITLE_SET_LANGUAGE = 1051
2324+
# Do you want to change language to {language}?
2325+
SUBTITLE_SET_LANGUAGE = 1052
2326+
# Set Auto-Lock
2327+
TITLE_SET_AUTO_LOCK = 1053
2328+
# Do you want to change Auto-Lock time to {time}?
2329+
SUBTITLE_SET_AUTO_LOCK = 1054
2330+
# Set Auto Shutdown
2331+
TITLE_SET_AUTO_SHUTDOWN = 1055
2332+
# Do you want to change Auto-Shutdown time to {time}?
2333+
SUBTITLE_SET_AUTO_SHUTDOWN = 1056
2334+
# Do you want to open Keyboard Haptic ?
2335+
SUBTITLE_OPEN_VIBRATION_HAPTIC = 1057
2336+
# Do you want to close Keyboard Haptic ?
2337+
SUBTITLE_CLOSE_VIBRATION_HAPTIC = 1058
2338+
# Do you want to switch PIN Keypad to default ? (The numbers on PIN keypad arr
2339+
# anged in sequence)
2340+
SUBTITLE_SWITCH_PIN_KEYPAD_DEFAULT = 1059
2341+
# Do you want to switch PIN Keypad to randomized ? (The numbers on PIN keypad
2342+
# arrange randomly)
2343+
SUBTITLE_SWITCH_PIN_KEYPAD_RANDOM = 1060
2344+
# Do you want to open USB Lock ? (Device will auto lock every time when USB pl
2345+
# ug or unplug)
2346+
SUBTITLE_OPEN_USB_LOCK = 1061
2347+
# Do you want to close USB Lock ? (Device will remain unlocked when USB plug o
2348+
# r unplug.)
2349+
SUBTITLE_CLOSE_USB_LOCK = 1062
2350+
# Does this match the code displayed on your App?
2351+
TITLE__BLUETOOTH_PAIR_DESC = 1063
2352+
# Yes, they match
2353+
BUTTON__YES_THEY_MATCH = 1064
2354+
# No, it does not
2355+
BUTTON__NO_IT_DOES_NOT = 1065
2356+
# Make sure your device is near your OneKey Pro, then try again.
2357+
TITLE__PAIR_FAILED_DESC = 1066
2358+
# Device Paired
2359+
TITLE__DEVICE_PAIRED = 1067
2360+
# Please continue to complete the OneKey App Check & Update.
2361+
TITLE__ALREADY_PAIRED_DESC = 1068
23222362
# fmt: on

core/src/trezor/lvglui/i18n/locales/de.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@
274274
"Bestellt",
275275
"Einschalten/Ausschalten",
276276
"Halten Sie den Netzschalter gedrückt, um das Gerät ein- und auszuschalten.",
277-
"Was ist Recovery Phrase?",
278-
"Ein von Menschen lesbarer privater Schlüssel zum Generieren Ihres Wallets. Ein Schlüssel zum Wiederherstellen all Ihrer Krypto-Assets.",
277+
"Was ist Wiederherstellungsphrase?",
278+
"Ein von Menschen lesbarer \"privater Schlüssel\" zum Generieren Ihrer Brieftasche. Ein Schlüssel zum Wiederherstellen all Ihrer Krypto-Assets.",
279279
"PIN-Schutz aktivieren",
280280
"Sicherheitsschutzmechanismus auf Systemebene, Legen Sie einen starken PIN-Code fest, um Ihre Krypto-Assets zu sichern.",
281281
"Wie Hardware Wallet funktioniert",
@@ -284,7 +284,7 @@
284284
"Die Passphrase kann als zweiter Faktor zum „zusätzlichen Wort“ der Hardware Wallet (Mnemonik + 1) betrachtet werden. Sie können mit unterschiedlichen Passphrasen auf verschiedene versteckte Wallets zugreifen.",
285285
"Brauchen Sie Hilfe?",
286286
"Haben Sie Fragen? Rufen Sie das OneKey Support Center auf, um Hilfe zu erhalten.",
287-
"Was ist Recovery Phrase",
287+
"Was ist Wiederherstellungsphrase",
288288
"Leitfaden",
289289
"Wert verschlüsseln",
290290
"Wert entschlüsseln",
@@ -580,8 +580,8 @@
580580
"Beenden Sie die KeyTag-Sicherung",
581581
"Rückseite ansehen",
582582
"Stellen Sie eine Verbindung zur OneKey-App her, suchen Sie die NFT, die dieser Hardware-Wallet gehört, und tippen Sie auf die Schaltfläche „Sammeln“.",
583-
"Sie können später in \"Wallet - Check Recovery Phrase\" immer noch mit KeyTag sichern.",
584-
"Wenn Sie eine weitere KeyTag-Sicherung erstellen möchten, können Sie die KeyTag-Dotmap in \"Wallet - Check Recovery Phrase\" anzeigen, nachdem Sie Ihre Wiederherstellungsphrase überprüft haben.",
583+
"Sie können später in \"Brieftasche - Wiederherstellungsphrase prüfen\" immer noch mit KeyTag sichern.",
584+
"Wenn Sie eine weitere KeyTag-Sicherung erstellen möchten, können Sie die KeyTag-Dotmap in \"Brieftasche - Wiederherstellungsphrase prüfen\" anzeigen, nachdem Sie Ihre Wiederherstellungsphrase überprüft haben.",
585585
"Geräteauthentifizierung",
586586
"Trezor-Kompatibilität deaktivieren",
587587
"Stellen Sie die Trezor-Kompatibilität wieder her",
@@ -870,7 +870,7 @@
870870
"Kandidat",
871871
"Zielnetzwerk",
872872
"Stimme entfernen",
873-
"Hochrisiko-Operation: Diese Transaktion enthält einen Delegatecall, der es externer Software ermöglichen könnte, Ihre Wallet zu kontrollieren.",
873+
"Hochrisiko-Operation: Diese Transaktion enthält einen Delegatecall, der es externer Software ermöglichen könnte, Ihre Brieftasche zu kontrollieren.",
874874
"Operation",
875875
"Gnosis Safe Transaktion",
876876
"Safe Tx Gas",
@@ -955,7 +955,7 @@
955955
"20-Wort-Backup-Typen",
956956
"Einzel-Share-Backup",
957957
"Multi-Share-Backup",
958-
"Erzeugt eine einzelne 20-Wörter-Wiederherstellungsphrase oder mehrere 20-Wörter-Anteile (Wortlisten), um Ihre Wallet wiederherzustellen.",
958+
"Erzeugt eine einzelne 20-Wörter-Wiederherstellungsphrase oder mehrere 20-Wörter-Anteile (Wortlisten), um Ihre Brieftasche wiederherzustellen.",
959959
"Anzahl der Anteile",
960960
"Schwelle",
961961
"Sie haben die Überprüfung von Anteil {num} von {total} der Wiederherstellungsphrase abgeschlossen.",
@@ -1036,7 +1036,7 @@
10361036
"Legen Sie eine 4–50-stellige PIN fest, um Ihr Gerät vor unbefugtem Zugriff zu schützen.",
10371037
"PIN festlegen",
10381038
"Lege deine PIN fest, um deine Wallet zu entsperren. Bewahre sie sicher auf und gib sie niemals an andere weiter.",
1039-
"Richten Sie Ihre Wallet ein",
1039+
"Richten Sie Ihre Brieftasche ein",
10401040
"Erstelle eine neue 12-Wörter-Wallet oder stelle eine zuvor verwendete Wallet aus der Recovery-Phrase-Sicherung wieder her. \nFür andere Längen der Recovery-Phrase oder eine Wallet mit mehreren Anteilen tippe oben rechts auf \"Mehr\", um den Typ der Recovery-Phrase auszuwählen.",
10411041
"Wähle den Sicherungstyp für deine neue Wallet.",
10421042
"Die Anzahl der Wörter in deiner Seed-Phrase beeinträchtigt ihre Sicherheit nicht; alle sind kryptografisch sicher.",
@@ -1051,5 +1051,23 @@
10511051
"Erweiterte Optionen",
10521052
"Verwenden Sie mehrere Entropiequellen",
10531053
"Standardmäßig verwendet das Gerät das Secure Element, um mnemonische Phrasen zu erzeugen. Wenn aktiviert, wird Entropie sowohl vom MCU als auch vom Secure Element kombiniert. Beide Methoden erfüllen kryptografische Sicherheitsstandards.",
1054+
"Sprache festlegen",
1055+
"Möchten Sie die Sprache ändern zu {language}?",
1056+
"Automatische Sperre einstellen",
1057+
"Möchtest du die Auto-Sperrzeit auf {time} ändern?",
1058+
"Automatische Abschaltung festlegen",
1059+
"Möchten Sie die automatische Abschaltzeit auf {time} ändern?",
1060+
"Möchten Sie die Tastaturhaptik öffnen?",
1061+
"Möchtest du die Tastaturhaptik deaktivieren?",
1062+
"Möchten Sie die PIN-Tastatur auf die Standardeinstellung umstellen? (Die Zahlen auf der PIN-Tastatur sind der Reihe nach angeordnet)",
1063+
"Möchten Sie die PIN-Tastatur auf zufällige Anordnung umstellen? (Die Zahlen auf der PIN-Tastatur werden zufällig angeordnet)",
1064+
"Möchten Sie die USB-Sperre öffnen? (Das Gerät wird bei jedem Ein- oder Ausstecken eines USB-Geräts automatisch gesperrt)",
1065+
"Möchten Sie USB-Sperre schließen? (Das Gerät bleibt entsperrt, wenn USB eingesteckt oder abgezogen wird.)",
1066+
"Stimmt das mit dem Code überein, der in deiner App angezeigt wird?",
1067+
"Ja, sie stimmen überein",
1068+
"Nein, tut es nicht",
1069+
"Stellen Sie sicher, dass Ihr Gerät in der Nähe Ihres OneKey Pro ist, und versuchen Sie es dann erneut.",
1070+
"Gerät gekoppelt",
1071+
"Bitte fahre fort, um die OneKey App-Prüfung und -Aktualisierung abzuschließen.",
10541072
]
10551073
# fmt: on

core/src/trezor/lvglui/i18n/locales/en.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
"Power On/Off",
276276
"Press and hold the power button to power on and off.",
277277
"What is Recovery Phrase?",
278-
"A human-readable \"private key\" to generate your wallet. A key to restore all your crypto asset.",
278+
"A human-readable \"private key\" to generate your wallet. A key to restore all your crypto assets.",
279279
"Enable PIN Protection",
280280
"System-level security protection mechanism, Set a strong PIN code to secure your crypto assets.",
281281
"How Hardware Wallet Works",
@@ -1051,5 +1051,23 @@
10511051
"Advanced Options",
10521052
"Use multiple sources of entropy",
10531053
"By default, the device uses the secure element to generate mnemonic phrases. When enabled, entropy from both the MCU and secure element will be combined. Both methods meet cryptographic security standards.",
1054+
"Set Language",
1055+
"Do you want to change language to {language}?",
1056+
"Set Auto-Lock",
1057+
"Do you want to change Auto-Lock time to {time}?",
1058+
"Set Auto Shutdown",
1059+
"Do you want to change Auto-Shutdown time to {time}?",
1060+
"Do you want to open Keyboard Haptic ?",
1061+
"Do you want to close Keyboard Haptic ?",
1062+
"Do you want to switch PIN Keypad to default ? (The numbers on PIN keypad arranged in sequence)",
1063+
"Do you want to switch PIN Keypad to randomized ? (The numbers on PIN keypad arrange randomly)",
1064+
"Do you want to open USB Lock ? (Device will auto lock every time when USB plug or unplug)",
1065+
"Do you want to close USB Lock ? (Device will remain unlocked when USB plug or unplug.)",
1066+
"Does this match the code displayed on your App?",
1067+
"Yes, they match",
1068+
"No, it does not",
1069+
"Make sure your device is near your OneKey Pro, then try again.",
1070+
"Device Paired",
1071+
"Please continue to complete the OneKey App Check & Update.",
10541072
]
10551073
# fmt: on

core/src/trezor/lvglui/i18n/locales/es.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,5 +1051,23 @@
10511051
"Opciones avanzadas",
10521052
"Usa múltiples fuentes de entropía",
10531053
"De forma predeterminada, el dispositivo utiliza el elemento seguro para generar frases mnemotécnicas. Cuando está habilitado, se combinará la entropía tanto del MCU como del elemento seguro. Ambos métodos cumplen con los estándares de seguridad criptográfica.",
1054+
"Configurar idioma",
1055+
"¿Quieres cambiar el idioma a {language}?",
1056+
"Configurar bloqueo automático",
1057+
"¿Quieres cambiar el tiempo de Bloqueo automático a {time}?",
1058+
"Configurar apagado automático",
1059+
"¿Deseas cambiar el tiempo de apagado automático a {time}?",
1060+
"¿Quieres activar la respuesta háptica del teclado?",
1061+
"¿Quieres desactivar la respuesta háptica del teclado?",
1062+
"¿Deseas cambiar el teclado PIN al predeterminado? (Los números en el teclado PIN están ordenados en secuencia)",
1063+
"¿Deseas cambiar el teclado PIN a aleatorio? (Los números del teclado PIN se disponen de forma aleatoria)",
1064+
"¿Quieres abrir USB Lock? (El dispositivo se bloqueará automáticamente cada vez que se conecte o desconecte un USB)",
1065+
"¿Desea cerrar USB Lock? (El dispositivo permanecerá desbloqueado cuando se conecte o desconecte el USB.)",
1066+
"¿Coincide esto con el código que se muestra en tu app?",
1067+
"Sí, coinciden",
1068+
"No, no lo hace",
1069+
"Asegúrate de que tu dispositivo esté cerca de tu OneKey Pro y vuelve a intentarlo.",
1070+
"Dispositivo emparejado",
1071+
"Por favor, continúa para completar la comprobación y actualización de OneKey App.",
10541072
]
10551073
# fmt: on

core/src/trezor/lvglui/i18n/locales/fr.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,5 +1051,23 @@
10511051
"Options avancées",
10521052
"Utiliser plusieurs sources d'entropie",
10531053
"Par défaut, l'appareil utilise l'élément sécurisé pour générer des phrases mnémoniques. Lorsque cette option est activée, l'entropie du MCU et de l'élément sécurisé sera combinée. Les deux méthodes répondent aux normes de sécurité cryptographique.",
1054+
"Définir la langue",
1055+
"Voulez-vous changer la langue en {language} ?",
1056+
"Définir le verrouillage automatique",
1057+
"Voulez-vous modifier le délai de verrouillage automatique à {time} ?",
1058+
"Définir l'arrêt automatique",
1059+
"Voulez-vous modifier l'heure d'arrêt automatique à {time} ?",
1060+
"Voulez-vous ouvrir le retour haptique du clavier ?",
1061+
"Voulez-vous fermer le retour haptique du clavier ?",
1062+
"Voulez-vous rétablir le clavier PIN par défaut ? (Les chiffres du clavier PIN sont disposés en séquence)",
1063+
"Voulez-vous activer le clavier PIN aléatoire ? (Les chiffres du clavier PIN sont disposés de manière aléatoire)",
1064+
"Voulez-vous activer le verrouillage USB ? (L'appareil se verrouillera automatiquement à chaque branchement ou débranchement USB)",
1065+
"Voulez-vous fermer USB Lock ? (L'appareil restera déverrouillé lors du branchement ou du débranchement USB.)",
1066+
"Cela correspond-il au code affiché sur votre application ?",
1067+
"Oui, ils correspondent",
1068+
"Non, ce n'est pas le cas",
1069+
"Assurez-vous que votre appareil est à proximité de votre OneKey Pro, puis réessayez.",
1070+
"Appareil jumelé",
1071+
"Veuillez continuer pour terminer la vérification et la mise à jour de OneKey App.",
10541072
]
10551073
# fmt: on

core/src/trezor/lvglui/i18n/locales/it.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,5 +1051,23 @@
10511051
"Opzioni avanzate",
10521052
"Usa più fonti di entropia",
10531053
"Per impostazione predefinita, il dispositivo utilizza l’elemento sicuro per generare frasi mnemoniche. Quando abilitata, l’entropia sia della MCU che dell’elemento sicuro verrà combinata. Entrambi i metodi soddisfano gli standard di sicurezza crittografica.",
1054+
"Imposta lingua",
1055+
"Vuoi cambiare lingua in {language}?",
1056+
"Imposta Blocco automatico",
1057+
"Vuoi cambiare il tempo di Blocco automatico a {time}?",
1058+
"Imposta spegnimento automatico",
1059+
"Vuoi cambiare il tempo di spegnimento automatico a {time}?",
1060+
"Vuoi attivare il feedback aptico della tastiera?",
1061+
"Vuoi disattivare il feedback aptico della tastiera?",
1062+
"Vuoi ripristinare il tastierino PIN alle impostazioni predefinite? (I numeri sul tastierino PIN sono disposti in sequenza)",
1063+
"Vuoi impostare il tastierino PIN su modalità casuale? (I numeri sul tastierino PIN sono disposti in modo casuale)",
1064+
"Vuoi aprire Blocco USB? (Il dispositivo si bloccherà automaticamente ogni volta che la USB viene collegata o scollegata)",
1065+
"Vuoi chiudere USB Lock? (Il dispositivo rimarrà sbloccato quando la USB viene collegata o scollegata.)",
1066+
"Questo corrisponde al codice visualizzato nella tua app?",
1067+
"Sì, corrispondono",
1068+
"No, non lo fa",
1069+
"Assicurati che il tuo dispositivo sia vicino al tuo OneKey Pro, quindi riprova.",
1070+
"Dispositivo associato",
1071+
"Continua per completare il controllo e l’aggiornamento di OneKey App.",
10541072
]
10551073
# fmt: on

0 commit comments

Comments
 (0)