Skip to content

Commit e37d8e7

Browse files
committed
chore(core): add {0} / {1} bytes to translation strings
Also, move streaming blob confirmation into universal FW. [no changelog]
1 parent ffb3293 commit e37d8e7

16 files changed

Lines changed: 246 additions & 132 deletions

File tree

core/embed/rust/librust_qstr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,13 +1269,15 @@ static void _librust_qstrs(void) {
12691269
MP_QSTR_ethereum__staking_stake_intro;
12701270
MP_QSTR_ethereum__staking_unstake;
12711271
MP_QSTR_ethereum__staking_unstake_intro;
1272+
MP_QSTR_ethereum__subtitle_input_data_bytes;
12721273
MP_QSTR_ethereum__title_all_input_data_template;
12731274
MP_QSTR_ethereum__title_confirm_domain;
12741275
MP_QSTR_ethereum__title_confirm_message;
12751276
MP_QSTR_ethereum__title_confirm_message_hash;
12761277
MP_QSTR_ethereum__title_confirm_struct;
12771278
MP_QSTR_ethereum__title_confirm_typed_data;
12781279
MP_QSTR_ethereum__title_input_data;
1280+
MP_QSTR_ethereum__title_input_data_bytes;
12791281
MP_QSTR_ethereum__title_signing_address;
12801282
MP_QSTR_ethereum__title_token_contract;
12811283
MP_QSTR_ethereum__token_contract;

core/embed/rust/src/translations/generated/translated_string.rs

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/mocks/trezortranslate_keys.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,15 @@ class TR:
366366
ethereum__staking_stake_intro: str = "Stake ETH on Everstake?"
367367
ethereum__staking_unstake: str = "Unstake"
368368
ethereum__staking_unstake_intro: str = "Unstake ETH from Everstake?"
369+
ethereum__subtitle_input_data_bytes: str = "{0} / {1} bytes"
369370
ethereum__title_all_input_data_template: str = "All input data ({0} bytes)"
370371
ethereum__title_confirm_domain: str = "Confirm domain"
371372
ethereum__title_confirm_message: str = "Confirm message"
372373
ethereum__title_confirm_message_hash: str = "Confirm message hash"
373374
ethereum__title_confirm_struct: str = "Confirm struct"
374375
ethereum__title_confirm_typed_data: str = "Confirm typed data"
375376
ethereum__title_input_data: str = "Input data"
377+
ethereum__title_input_data_bytes: str = "Input data:\n{0} / {1} bytes"
376378
ethereum__title_signing_address: str = "Signing address"
377379
ethereum__title_token_contract: str = "Token contract"
378380
ethereum__token_contract: str = "Token contract address"

core/src/apps/ethereum/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ async def confirm_fn(chunk: AnyBytes) -> None:
285285
while True:
286286
assert 0 <= confirmed_len <= total_len
287287
prefix_len = await confirm_blob_prefix(
288-
title=TR.ethereum__title_input_data,
289288
data=chunk,
290289
total_len=total_len,
291290
confirmed_len=confirmed_len,

0 commit comments

Comments
 (0)