Skip to content

Commit bd99837

Browse files
authored
fix(core): update i18n items and slip-39 group threshold reached warn… (#364)
fix(core): update i18n items and slip-39 group threshold reached warning description
1 parent 5dd2a5f commit bd99837

File tree

14 files changed

+34
-14
lines changed

14 files changed

+34
-14
lines changed

core/src/apps/ethereum/onekey/sign_tx_eip1559.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ async def sign_tx_eip1559(
129129

130130
from trezor.ui.layouts.lvgl import confirm_turbo
131131

132-
await confirm_turbo(ctx, (_(i18n_keys.LIST_VALUE__SEND) + suffix), network.name)
132+
if value == 0:
133+
title = _(i18n_keys.TITLE_REQUEST_CONFIRMATION)
134+
else:
135+
title = _(i18n_keys.LIST_VALUE__SEND) + suffix
136+
await confirm_turbo(ctx, title, network.name)
133137

134138
elif approve_info:
135139
from .providers import provider_by_chain_address

core/src/apps/management/recovery_device/layout.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ async def show_group_threshold_reached(ctx: wire.GenericContext) -> None:
202202
await show_warning(
203203
ctx,
204204
"warning_group_threshold",
205-
"Threshold of this\ngroup has been reached.\nInput share from\ndifferent group.",
205+
_(i18n_keys.SUBTITLE__ENTER_A_DIFFERENT_SHARE),
206+
header=_(i18n_keys.TITLE__ENTER_A_DIFFERENT_SHARE),
207+
button=_(i18n_keys.BUTTON__TRY_AGAIN),
208+
btn_yes_bg_color=lv_colors.ONEKEY_GRAY_3,
206209
)
207210

208211

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,12 +2228,14 @@
22282228
WARNING_UNRECOGNIZED_TOKEN = 1012
22292229
# Recipient is a known energy rental service provider address.
22302230
BANNER_ENERGY_RENTAL = 1013
2231-
# Use the latest version of the OneKey App to use “Attach to PIN”.
2231+
# This version doesn’t support the “Attach to PIN” feature.
22322232
MSG__ATTACH_TO_PIN_TIPS = 1014
22332233
# Request Confirmation
22342234
TITLE_REQUEST_CONFIRMATION = 1015
22352235
# Abort Recovery Phrase Creation?
22362236
TITLE__ABORT_RECOVERY_PHRASE_CREATION = 1016
22372237
# This is Share {num1} of {num2}.
22382238
SUBTITLE__THIS_IS_SHARE_STR_OF_STR = 1017
2239+
# Threshold of this group has been reached. Input share from different group.
2240+
SUBTITLE__ENTER_A_DIFFERENT_SHARE = 1018
22392241
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"Transaktions-Hash",
10151015
"Dieses Token wird von der Hardware-Wallet nicht erkannt. Bitte überprüfen Sie dies sorgfältig.",
10161016
"Der Empfänger ist eine bekannte Adresse eines Energie-Mietdienstleisters.",
1017-
"Verwenden Sie die neueste Version der OneKey App, um „An PIN anheften“ zu nutzen.",
1017+
"Diese Version unterstützt die Funktion „An PIN anhängen“ nicht.",
10181018
"Anfragebestätigung",
10191019
"Wiederherstellungsphrase-Erstellung abbrechen?",
10201020
"Dies ist Anteil {num1} von {num2}.",
1021+
"Der Schwellenwert dieser Gruppe wurde erreicht. Bitte einen Anteil aus einer anderen Gruppe eingeben.",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"Transaction Hash",
10151015
"This token is not recognized by the hardware wallet. Please verify carefully.",
10161016
"Recipient is a known energy rental service provider address.",
1017-
"Use the latest version of the OneKey App to use “Attach to PIN”.",
1017+
"This version doesn’t support the “Attach to PIN” feature.",
10181018
"Request Confirmation",
10191019
"Abort Recovery Phrase Creation?",
10201020
"This is Share {num1} of {num2}.",
1021+
"Threshold of this group has been reached. Input share from different group.",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"Hash de transacción",
10151015
"Este token no es reconocido por la billetera de hardware. Por favor, verifícalo cuidadosamente.",
10161016
"El destinatario es una dirección conocida de un proveedor de servicios de alquiler de energía.",
1017-
"Utilice la última versión de la OneKey App para usar \"Adjuntar al PIN\".",
1017+
"Esta versión no admite la función \"Adjuntar al PIN\".",
10181018
"Confirmación de solicitud",
10191019
"¿Abortar la creación de la frase de recuperación?",
10201020
"Esta es la parte {num1} de {num2}.",
1021+
"Se ha alcanzado el umbral de este grupo. Introduzca una participación de un grupo diferente.",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"Transaction Hash",
10151015
"Ce jeton n'est pas reconnu par le portefeuille matériel. Veuillez vérifier attentivement.",
10161016
"Le destinataire est une adresse connue de fournisseur de services de location d'énergie.",
1017-
"Utilisez la dernière version de OneKey App pour utiliser « Attacher au PIN ».",
1017+
"Cette version ne prend pas en charge la fonctionnalité « Associer au code PIN ».",
10181018
"Demande de confirmation",
10191019
"Abandonner la création de la phrase de récupération ?",
10201020
"Ceci est la part {num1} sur {num2}.",
1021+
"Le seuil de ce groupe a été atteint. Veuillez saisir une part d'un groupe différent.",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"Hash della transazione",
10151015
"Questo token non è riconosciuto dal wallet hardware. Si prega di verificare attentamente.",
10161016
"Il destinatario è un indirizzo noto di un fornitore di servizi di noleggio di energia.",
1017-
"Usa l'ultima versione della OneKey App per utilizzare \"Allega al PIN\".",
1017+
"Questa versione non supporta la funzione \"Associa al PIN\".",
10181018
"Conferma richiesta",
10191019
"Annullare la creazione della frase di recupero?",
10201020
"Questa è la quota {num1} di {num2}.",
1021+
"La soglia di questo gruppo è stata raggiunta. Inserisci una quota da un gruppo diverso.",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"トランザクションのハッシュ",
10151015
"このトークンはハードウェアウォレットで認識されません。ご確認ください。",
10161016
"受取人は、既知のエネルギーレンタルサービスプロバイダーのアドレスです。",
1017-
"「PINに接続」機能を利用するには、最新バージョンのOneKey Appをご利用ください。",
1017+
"このバージョンは「PINに接続」機能をサポートしていません。",
10181018
"リクエストの確認",
10191019
"リカバリーフレーズの作成を中止しますか?",
10201020
"これは {num2} のうちの {num1} つ目の共有です。",
1021+
"このグループのしきい値に達しました。別のグループからシェアを入力してください。",
10211022
]
10221023
# fmt: on

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@
10141014
"트랜잭션 해시",
10151015
"이 토큰은 하드웨어 지갑에서 인식되지 않습니다. 반드시 신중하게 확인해 주세요.",
10161016
"수신자는 잘 알려진 에너지 렌탈 서비스 제공업체 주소입니다.",
1017-
"최신 버전의 OneKey App을 사용하여 “PIN에 첨부 기능을 이용하세요.",
1017+
"이 버전은 \"PIN에 첨부\" 기능을 지원하지 않습니다.",
10181018
"요청 확인",
10191019
"복구 구문 생성을 중단하시겠습니까?",
10201020
"이것은 {num2} 중 {num1}번째 공유입니다.",
1021+
"이 그룹의 임계값에 도달했습니다. 다른 그룹의 입력 쉐어를 사용하세요.",
10211022
]
10221023
# fmt: on

0 commit comments

Comments
 (0)