Skip to content

Commit cd47d2b

Browse files
authored
fix ui error (#338)
* revert(app): use legacy method to initialize app list. * feat(i18n): display language names in their native language. * feat(ui): cache homescreen setting to avoid unnecessary updates. * chore(fingerprint): adjust fingerprint image position. * chore(i18n): update translation texts.
1 parent 55c87b2 commit cd47d2b

File tree

7 files changed

+313
-184
lines changed

7 files changed

+313
-184
lines changed

core/src/trezor/langs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
("ko", "한국어"),
88
("fr", "Français"),
99
("de", "Deutsch"),
10-
("ru", "Russian"),
11-
("es", "Spanish"),
10+
("ru", "Русский"),
11+
("es", "Español"),
1212
("it", "Italiano"),
1313
("pt_br", "Portuguese (Brazil)"),
1414
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
"Zum Konto gehen",
822822
"Fehler bei der Eingabeformatierung",
823823
"Ihre Adresse ist eine EVM-Netzwerkadresse. Sie können sie verwenden, um Ihre Vermögenswerte über andere EVM-kompatible Netzwerke (wie Ethereum, BNB Chain, Polygon, Arbitrum One, Avalanche usw.) zu verwalten.",
824-
"Sicherheitsschlüssel",
824+
"Sicherheit-Key",
825825
"Einrichtung des Wallets erforderlich",
826826
"Um Ihr Gerät über Bluetooth zu koppeln, erstellen Sie bitte zuerst eine Wallet auf Ihrem Hardware-Gerät. Dies ist notwendig für eine sichere Verbindung.",
827827
"Bluetooth-Kopplung im Boot-Modus nicht verfügbar",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
"Ir a la cuenta",
822822
"Error de formato de entrada",
823823
"Tu dirección es una dirección de red EVM. Puedes usarla para gestionar tus activos a través de otras redes compatibles con EVM (como Ethereum, BNB Chain, Polygon, Arbitrum One, Avalanche, etc.).",
824-
"Llaves de seguridad",
824+
"Llaves seguras",
825825
"Configuración de la billetera requerida",
826826
"Para emparejar tu dispositivo a través de Bluetooth, primero crea una billetera en tu dispositivo de hardware. Esto es necesario para una conexión segura.",
827827
"Emparejamiento Bluetooth no disponible mientras está en modo Boot",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
"Ir para a Conta",
822822
"Erro de formatação de entrada",
823823
"Seu endereço é um endereço de rede EVM. Você pode usá-lo para gerenciar seus ativos em outras redes compatíveis com EVM (como Ethereum, BNB Chain, Polygon, Arbitrum One, Avalanche, etc.).",
824-
"Chaves de segurança",
824+
"Chaves seguras",
825825
"Configuração da Carteira Necessária",
826826
"Para emparelhar seu dispositivo via Bluetooth, por favor, crie uma carteira no seu dispositivo de hardware primeiro. Isso é necessário para uma conexão segura.",
827827
"Emparelhamento Bluetooth indisponível enquanto estiver no modo Boot",
@@ -1010,5 +1010,10 @@
10101010
"A Frase de Recuperação que você inseriu está incorreta. Por favor, insira a Frase correta.",
10111011
"Você Entrou na Ação {num1} Do Grupo {num2}",
10121012
"Você precisa inserir mais ações.",
1013+
"OneKey Extended",
1014+
"Kaspa Oficial",
1015+
"Selecionar Tipo de Conta",
1016+
"Hash de transação",
1017+
"Este token não é reconhecido pela carteira física. Por favor, verifique cuidadosamente.",
10131018
]
10141019
# fmt: on

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
"Перейти в аккаунт",
822822
"Ошибка форматирования ввода",
823823
"Ваш адрес является адресом сети EVM. Вы можете использовать его для управления своими активами в других сетях, совместимых с EVM (таких как Ethereum, BNB Chain, Polygon, Arbitrum One, Avalanche и т.д.).",
824-
"Ключи безопасности",
824+
"Безопасные ключи",
825825
"Требуется настройка кошелька",
826826
"Чтобы подключить ваше устройство через Bluetooth, сначала создайте кошелек на вашем аппаратном устройстве. Это необходимо для безопасного соединения.",
827827
"Подключение Bluetooth недоступно в режиме загрузки",

core/src/trezor/lvglui/scrs/fingerprints.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def __init__(self, title: str, subtitle: str, confirm_text: str, img_path: str):
162162
anim_dir=0,
163163
)
164164

165-
self.content_area.set_scroll_dir(lv.DIR.NONE)
165+
self.content_area.clear_flag(lv.obj.FLAG.SCROLL_ELASTIC)
166+
self.content_area.clear_flag(lv.obj.FLAG.SCROLL_MOMENTUM)
166167

167168
self.title.align_to(self.content_area, lv.ALIGN.TOP_LEFT, 12, 84)
168169
self.subtitle.align_to(self.title, lv.ALIGN.OUT_BOTTOM_LEFT, 0, 16)
@@ -173,12 +174,12 @@ def __init__(self, title: str, subtitle: str, confirm_text: str, img_path: str):
173174
self.img = lv.img(self.content_area)
174175
self.img.remove_style_all()
175176
self.img.set_src(img_path)
176-
self.img.align(lv.ALIGN.TOP_LEFT, 12, 320)
177+
self.img.align_to(self.subtitle, lv.ALIGN.OUT_BOTTOM_LEFT, 0, 24)
177178

178179
self.arrow = lv.img(self.content_area)
179180
self.arrow.remove_style_all()
180181
self.arrow.set_src("A:/res/finger-start-arrow.png")
181-
self.arrow.align(lv.ALIGN.TOP_LEFT, 12, 454)
182+
self.arrow.align_to(self.img, lv.ALIGN.TOP_RIGHT, 0, 134)
182183

183184
self.icon_cancel = lv.obj(self.content_area)
184185
self.icon_cancel.remove_style_all()
@@ -205,6 +206,12 @@ def __init__(self, title: str, subtitle: str, confirm_text: str, img_path: str):
205206
self.anim.set_custom_exec_cb(lambda _a, val: self.anim_set_x(val))
206207
self.anim_r = lv.anim_t.start(self.anim)
207208

209+
self.spacer = lv.obj(self.content_area)
210+
self.spacer.set_size(lv.pct(100), 60)
211+
self.spacer.align_to(self.img, lv.ALIGN.OUT_BOTTOM_MID, 0, 0)
212+
self.spacer.set_style_bg_opa(lv.OPA.TRANSP, 0)
213+
self.spacer.set_style_border_width(0, 0)
214+
208215
def on_close(self, event_obj):
209216
code = event_obj.code
210217
target = event_obj.get_target()

0 commit comments

Comments
 (0)