refactor(core): removing \{TR\.\w+\}:

[no changelog]
This commit is contained in:
Michal Kazda
2026-02-12 17:10:37 +01:00
parent 38f9e73fba
commit 48c0341659
10 changed files with 9741 additions and 9357 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -269,7 +269,6 @@ Q(payment_request)
Q(pin)
Q(power_management)
Q(progress)
Q(properties)
Q(protobuf)
Q(protocol_common)
Q(readers)
@@ -390,7 +389,6 @@ Q(trezor.ui.layouts.fido)
Q(trezor.ui.layouts.homescreen)
Q(trezor.ui.layouts.menu)
Q(trezor.ui.layouts.progress)
Q(trezor.ui.layouts.properties)
Q(trezor.ui.layouts.recovery)
Q(trezor.ui.layouts.reset)
Q(trezor.ui.layouts.slip24)

View File

@@ -59,7 +59,7 @@ class TR:
bitcoin__locktime_set_to_blockheight: str = "Locktime set to blockheight"
bitcoin__lot_of_change_outputs: str = "A lot of change-outputs."
bitcoin__multiple_accounts: str = "Multiple accounts"
bitcoin__new_fee_rate: str = "New fee rate"
bitcoin__new_fee_rate: str = "New fee rate:"
bitcoin__simple_send_of: str = "Simple send of"
bitcoin__ticket_amount: str = "Ticket amount"
bitcoin__title_confirm_details: str = "Confirm details"
@@ -153,20 +153,20 @@ class TR:
cardano__address_no_staking: str = "Address - no staking rewards."
cardano__always_abstain: str = "Always Abstain"
cardano__always_no_confidence: str = "Always No Confidence"
cardano__amount_burned_decimals_unknown: str = "Amount burned (decimals unknown)"
cardano__amount_minted_decimals_unknown: str = "Amount minted (decimals unknown)"
cardano__amount_sent_decimals_unknown: str = "Amount sent (decimals unknown)"
cardano__amount_burned_decimals_unknown: str = "Amount burned (decimals unknown):"
cardano__amount_minted_decimals_unknown: str = "Amount minted (decimals unknown):"
cardano__amount_sent_decimals_unknown: str = "Amount sent (decimals unknown):"
cardano__anonymous_pool: str = "Pool has no metadata (anonymous pool)"
cardano__asset_fingerprint: str = "Asset fingerprint"
cardano__auxiliary_data_hash: str = "Auxiliary data hash"
cardano__asset_fingerprint: str = "Asset fingerprint:"
cardano__auxiliary_data_hash: str = "Auxiliary data hash:"
cardano__block: str = "Block"
cardano__catalyst: str = "Catalyst"
cardano__certificate: str = "Certificate"
cardano__change_output: str = "Change output"
cardano__check_all_items: str = "Check all items carefully."
cardano__choose_level_of_details: str = "Choose level of details:"
cardano__collateral_input_id: str = "Collateral input ID"
cardano__collateral_input_index: str = "Collateral input index"
cardano__collateral_input_id: str = "Collateral input ID:"
cardano__collateral_input_index: str = "Collateral input index:"
cardano__collateral_output_contains_tokens: str = "The collateral return output contains tokens."
cardano__collateral_return: str = "Collateral return"
cardano__confirm_message: str = "Confirm message"
@@ -176,56 +176,56 @@ class TR:
cardano__confirming_a_plutus_transaction: str = "Confirming a Plutus transaction."
cardano__confirming_pool_registration: str = "Confirming pool registration as owner."
cardano__confirming_transaction: str = "Confirming a transaction."
cardano__cost: str = "Cost"
cardano__cost: str = "Cost:"
cardano__credential_mismatch: str = "Credential doesn't match payment credential."
cardano__datum_hash: str = "Datum hash"
cardano__delegating_to: str = "Delegating to"
cardano__delegating_to_key_hash: str = "Delegating to key hash"
cardano__delegating_to_script: str = "Delegating to script"
cardano__deposit: str = "Deposit"
cardano__datum_hash: str = "Datum hash:"
cardano__delegating_to: str = "Delegating to:"
cardano__delegating_to_key_hash: str = "Delegating to key hash:"
cardano__delegating_to_script: str = "Delegating to script:"
cardano__deposit: str = "Deposit:"
cardano__empty_message: str = "Empty message"
cardano__for_account_and_index_template: str = "For account {0} and index {1}"
cardano__for_account_template: str = "For account {0}"
cardano__for_key_hash: str = "For key hash"
cardano__for_script: str = "For script"
cardano__for_account_and_index_template: str = "For account {0} and index {1}:"
cardano__for_account_template: str = "For account {0}:"
cardano__for_key_hash: str = "For key hash:"
cardano__for_script: str = "For script:"
cardano__inline_datum: str = "Inline datum"
cardano__input_id: str = "Input ID"
cardano__input_index: str = "Input index"
cardano__input_id: str = "Input ID:"
cardano__input_index: str = "Input index:"
cardano__intro_text_change: str = "The following address is a change address. Its"
cardano__intro_text_owned_by_device: str = "The following address is owned by this device. Its"
cardano__intro_text_registration_payment: str = "The vote key registration payment address is owned by this device. Its"
cardano__key_hash: str = "key hash"
cardano__margin: str = "Margin"
cardano__message_hash: str = "Message hash"
cardano__margin: str = "Margin:"
cardano__message_hash: str = "Message hash:"
cardano__message_hex: str = "Message hex"
cardano__message_text: str = "Message text"
cardano__multisig_path: str = "multi-sig path"
cardano__nested_scripts_template: str = "Contains {0} nested scripts."
cardano__network: str = "Network"
cardano__network: str = "Network:"
cardano__no_output_tx: str = "Transaction has no outputs, network cannot be verified."
cardano__nonce: str = "Nonce"
cardano__nonce: str = "Nonce:"
cardano__other: str = "Other"
cardano__path: str = "path"
cardano__pledge: str = "Pledge"
cardano__pledge: str = "Pledge:"
cardano__pointer: str = "pointer"
cardano__policy_id: str = "Policy ID"
cardano__pool_metadata_hash: str = "Pool metadata hash"
cardano__pool_metadata_url: str = "Pool metadata url"
cardano__pool_owner: str = "Pool owner"
cardano__pool_reward_account: str = "Pool reward account"
cardano__reference_input_id: str = "Reference input ID"
cardano__reference_input_index: str = "Reference input index"
cardano__pool_metadata_hash: str = "Pool metadata hash:"
cardano__pool_metadata_url: str = "Pool metadata url:"
cardano__pool_owner: str = "Pool owner:"
cardano__pool_reward_account: str = "Pool reward account:"
cardano__reference_input_id: str = "Reference input ID:"
cardano__reference_input_index: str = "Reference input index:"
cardano__reference_script: str = "Reference script"
cardano__required_signer: str = "Required signer"
cardano__reward: str = "Reward"
cardano__reward_address: str = "Address is a reward address."
cardano__reward_eligibility_warning: str = "Warning: The address is not a payment address, it is not eligible for rewards."
cardano__rewards_go_to: str = "Rewards go to"
cardano__rewards_go_to: str = "Rewards go to:"
cardano__script: str = "script"
cardano__script_all: str = "All"
cardano__script_any: str = "Any"
cardano__script_data_hash: str = "Script data hash"
cardano__script_hash: str = "Script hash"
cardano__script_data_hash: str = "Script data hash:"
cardano__script_hash: str = "Script hash:"
cardano__script_invalid_before: str = "Invalid before"
cardano__script_invalid_hereafter: str = "Invalid hereafter"
cardano__script_key: str = "Key"
@@ -239,31 +239,31 @@ class TR:
cardano__stake_delegation: str = "Stake delegation"
cardano__stake_deregistration: str = "Stake key deregistration"
cardano__stake_pool_registration: str = "Stakepool registration"
cardano__stake_pool_registration_pool_id: str = "Stake pool registration\nPool ID"
cardano__stake_pool_registration_pool_id: str = "Stake pool registration\nPool ID:"
cardano__stake_registration: str = "Stake key registration"
cardano__staking_key_for_account: str = "Staking key for account"
cardano__to_pool: str = "To pool"
cardano__to_pool: str = "To pool:"
cardano__token_minting_path: str = "token minting path"
cardano__total_collateral: str = "Total collateral"
cardano__total_collateral: str = "Total collateral:"
cardano__transaction: str = "Transaction"
cardano__transaction_contains_minting_or_burning: str = "The transaction contains minting or burning of tokens."
cardano__transaction_contains_script_address_no_datum: str = "The following transaction output contains a script address, but does not contain a datum."
cardano__transaction_id: str = "Transaction ID"
cardano__transaction_id: str = "Transaction ID:"
cardano__transaction_no_collateral_input: str = "The transaction contains no collateral inputs. Plutus script will not be able to run."
cardano__transaction_no_script_data_hash: str = "The transaction contains no script data hash. Plutus script will not be able to run."
cardano__transaction_output_contains_tokens: str = "The following transaction output contains tokens."
cardano__ttl: str = "TTL"
cardano__ttl: str = "TTL:"
cardano__unknown_collateral_amount: str = "Unknown collateral amount."
cardano__unusual_path: str = "Path is unusual."
cardano__valid_since: str = "Valid since"
cardano__valid_since: str = "Valid since:"
cardano__verify_script: str = "Verify script"
cardano__vote_delegation: str = "Vote delegation"
cardano__vote_key_registration: str = "Vote key registration (CIP-36)"
cardano__vote_public_key: str = "Vote public key"
cardano__voting_purpose: str = "Voting purpose"
cardano__vote_public_key: str = "Vote public key:"
cardano__voting_purpose: str = "Voting purpose:"
cardano__warning: str = "Warning"
cardano__weight: str = "Weight"
cardano__withdrawal_for_address_template: str = "Confirm withdrawal for {0} address"
cardano__weight: str = "Weight:"
cardano__withdrawal_for_address_template: str = "Confirm withdrawal for {0} address:"
cardano__x_of_y_signatures_template: str = "Requires {0} out of {1} signatures."
coinjoin__access_account: str = "Access your coinjoin account?"
coinjoin__do_not_disconnect: str = "Do not disconnect your Trezor!"
@@ -287,44 +287,44 @@ class TR:
entropy__send: str = "Do you really want to send entropy?"
entropy__title_confirm: str = "Confirm entropy"
eos__about_to_sign_template: str = "You are about to sign {0}."
eos__action_name: str = "Action Name"
eos__action_name: str = "Action Name:"
eos__arbitrary_data: str = "Arbitrary data"
eos__buy_ram: str = "Buy RAM"
eos__bytes: str = "Bytes"
eos__bytes: str = "Bytes:"
eos__cancel_vote: str = "Cancel vote"
eos__checksum: str = "Checksum"
eos__code: str = "Code"
eos__contract: str = "Contract"
eos__cpu: str = "CPU"
eos__creator: str = "Creator"
eos__checksum: str = "Checksum:"
eos__code: str = "Code:"
eos__contract: str = "Contract:"
eos__cpu: str = "CPU:"
eos__creator: str = "Creator:"
eos__delegate: str = "Delegate"
eos__delete_auth: str = "Delete Auth"
eos__from: str = "From"
eos__from: str = "From:"
eos__link_auth: str = "Link Auth"
eos__memo: str = "Memo"
eos__name: str = "Name"
eos__net: str = "NET"
eos__name: str = "Name:"
eos__net: str = "NET:"
eos__new_account: str = "New account"
eos__owner: str = "Owner"
eos__parent: str = "Parent"
eos__payer: str = "Payer"
eos__permission: str = "Permission"
eos__proxy: str = "Proxy"
eos__receiver: str = "Receiver"
eos__owner: str = "Owner:"
eos__parent: str = "Parent:"
eos__payer: str = "Payer:"
eos__permission: str = "Permission:"
eos__proxy: str = "Proxy:"
eos__receiver: str = "Receiver:"
eos__refund: str = "Refund"
eos__requirement: str = "Requirement"
eos__requirement: str = "Requirement:"
eos__sell_ram: str = "Sell RAM"
eos__sender: str = "Sender"
eos__threshold: str = "Threshold"
eos__to: str = "To"
eos__transfer: str = "Transfer"
eos__type: str = "Type"
eos__sender: str = "Sender:"
eos__threshold: str = "Threshold:"
eos__to: str = "To:"
eos__transfer: str = "Transfer:"
eos__type: str = "Type:"
eos__undelegate: str = "Undelegate"
eos__unlink_auth: str = "Unlink Auth"
eos__update_auth: str = "Update Auth"
eos__vote_for_producers: str = "Vote for producers"
eos__vote_for_proxy: str = "Vote for proxy"
eos__voter: str = "Voter"
eos__voter: str = "Voter:"
ethereum__amount_sent: str = "Amount sent:"
ethereum__approve: str = "Approve"
ethereum__approve_amount_allowance: str = "Amount allowance"
@@ -343,7 +343,7 @@ class TR:
ethereum__eip_7702_title: str = "Smart accounts"
ethereum__gas_limit: str = "Gas limit"
ethereum__gas_price: str = "Gas price"
ethereum__interaction_contract: str = "Interaction contract"
ethereum__interaction_contract: str = "Interaction contract:"
ethereum__max_gas_price: str = "Max fee per gas"
ethereum__name_and_version: str = "Name and version"
ethereum__new_contract: str = "New contract will be deployed"
@@ -454,8 +454,8 @@ class TR:
instructions__tap_to_continue: str = "Tap to continue"
instructions__view_all_data: str = "View all data in the menu."
joint__title: str = "Joint transaction"
joint__to_the_total_amount: str = "To the total amount"
joint__you_are_contributing: str = "You are contributing"
joint__to_the_total_amount: str = "To the total amount:"
joint__you_are_contributing: str = "You are contributing:"
language__change_to_template: str = "Change language to {0}?"
language__changed: str = "Language changed successfully"
language__progress: str = "Changing language"
@@ -521,21 +521,21 @@ class TR:
nem__create_namespace: str = "Create namespace"
nem__deactivate: str = "Deactivate"
nem__decrease: str = "Decrease"
nem__description: str = "Description"
nem__description: str = "Description:"
nem__divisibility_and_levy_cannot_be_shown: str = "Divisibility and levy cannot be shown for unknown mosaics"
nem__encrypted: str = "Encrypted"
nem__final_confirm: str = "Final confirm"
nem__immutable: str = "immutable"
nem__increase: str = "Increase"
nem__initial_supply: str = "Initial supply"
nem__initial_supply: str = "Initial supply:"
nem__initiate_transaction_for: str = "Initiate transaction for"
nem__levy_divisibility: str = "Levy divisibility"
nem__levy_fee: str = "Levy fee"
nem__levy_divisibility: str = "Levy divisibility:"
nem__levy_fee: str = "Levy fee:"
nem__levy_fee_of: str = "Confirm mosaic levy fee of"
nem__levy_mosaic: str = "Levy mosaic"
nem__levy_namespace: str = "Levy namespace"
nem__levy_recipient: str = "Levy recipient"
nem__levy_type: str = "Levy type"
nem__levy_mosaic: str = "Levy mosaic:"
nem__levy_namespace: str = "Levy namespace:"
nem__levy_recipient: str = "Levy recipient:"
nem__levy_type: str = "Levy type:"
nem__modify_supply_for: str = "Modify supply for"
nem__modify_the_number_of_cosignatories_by: str = "Modify the number of cosignatories by "
nem__mutable: str = "mutable"
@@ -548,7 +548,7 @@ class TR:
nem__sign_tx_fee_template: str = "Sign this transaction\nand pay {0}\nfor network fee?"
nem__supply_change: str = "Supply change"
nem__supply_units_template: str = "{0} supply by {1} whole units?"
nem__transferable: str = "Transferable"
nem__transferable: str = "Transferable:"
nem__under_namespace: str = "under namespace"
nem__unencrypted: str = "Unencrypted"
nem__unknown_mosaic: str = "Unknown mosaic!"
@@ -822,8 +822,8 @@ class TR:
send__confirm_sending: str = "Sending amount"
send__from_multiple_accounts: str = "Sending from multiple accounts."
send__incl_transaction_fee: str = "incl. Transaction fee"
send__including_fee: str = "Including fee"
send__maximum_fee: str = "Maximum fee"
send__including_fee: str = "Including fee:"
send__maximum_fee: str = "Maximum fee:"
send__multisig_different_paths: str = "Using different paths for different XPUBs."
send__receiving_to_multisig: str = "Receiving to a multisig address."
send__send_from: str = "Send from"
@@ -891,7 +891,7 @@ class TR:
stellar__allow_trust: str = "Allow trust"
stellar__balance_id: str = "Balance ID"
stellar__bump_sequence: str = "Bump Sequence"
stellar__buying: str = "Buying"
stellar__buying: str = "Buying:"
stellar__claim_claimable_balance: str = "Claim Claimable Balance"
stellar__clear_data: str = "Clear data"
stellar__clear_flags: str = "Clear flags"
@@ -908,15 +908,15 @@ class TR:
stellar__exchanges_require_memo: str = "Memo is not set.\nTypically needed when sending to exchanges."
stellar__final_confirm: str = "Final confirm"
stellar__hash: str = "Hash"
stellar__high: str = "High"
stellar__high: str = "High:"
stellar__home_domain: str = "Home Domain"
stellar__inflation: str = "Inflation"
stellar__issuer_template: str = "{0} issuer"
stellar__key: str = "Key"
stellar__key: str = "Key:"
stellar__limit: str = "Limit"
stellar__low: str = "Low"
stellar__master_weight: str = "Master Weight"
stellar__medium: str = "Medium"
stellar__low: str = "Low:"
stellar__master_weight: str = "Master Weight:"
stellar__medium: str = "Medium:"
stellar__new_offer: str = "New Offer"
stellar__new_passive_offer: str = "New Passive Offer"
stellar__no_memo_set: str = "No memo set!"
@@ -926,10 +926,10 @@ class TR:
stellar__pay: str = "Pay"
stellar__pay_at_most: str = "Pay at most"
stellar__preauth_transaction: str = "Pre-auth transaction"
stellar__price_per_template: str = "Price per {0}"
stellar__price_per_template: str = "Price per {0}:"
stellar__remove_signer: str = "Remove Signer"
stellar__revoke_trust: str = "Revoke trust"
stellar__selling: str = "Selling"
stellar__selling: str = "Selling:"
stellar__set_data: str = "Set data"
stellar__set_flags: str = "Set flags"
stellar__set_sequence_to_template: str = "Set sequence to {0}?"
@@ -945,15 +945,15 @@ class TR:
stellar__update: str = "Update"
stellar__valid_from: str = "Valid from (UTC)"
stellar__valid_to: str = "Valid to (UTC)"
stellar__value_sha256: str = "Value (SHA-256)"
stellar__value_sha256: str = "Value (SHA-256):"
stellar__wanna_clean_value_key_template: str = "Do you want to clear value key {0}?"
storage_msg__processing: str = "Processing"
storage_msg__starting: str = "Starting up"
storage_msg__verifying_pin: str = "Verifying PIN"
storage_msg__wrong_pin: str = "Wrong PIN"
tezos__baker_address: str = "Baker address"
tezos__balance: str = "Balance"
tezos__ballot: str = "Ballot"
tezos__balance: str = "Balance:"
tezos__ballot: str = "Ballot:"
tezos__confirm_delegation: str = "Confirm delegation"
tezos__confirm_origination: str = "Confirm origination"
tezos__delegator: str = "Delegator"
@@ -1049,8 +1049,8 @@ class TR:
words__about: str = "About"
words__account: str = "Account"
words__account_colon: str = "Account:"
words__address: str = "Address"
words__amount: str = "Amount"
words__address: str = "Address:"
words__amount: str = "Amount:"
words__are_you_sure: str = "Are you sure?"
words__array_of: str = "Array of"
words__asset: str = "Asset"
@@ -1078,7 +1078,7 @@ class TR:
words__disconnected: str = "Disconnected"
words__enabled: str = "Enabled"
words__error: str = "Error"
words__fee: str = "Fee"
words__fee: str = "Fee:"
words__fee_limit: str = "Fee limit"
words__forget: str = "Forget"
words__from: str = "from"
@@ -1102,14 +1102,14 @@ class TR:
words__please_check_again: str = "Please check again"
words__please_try_again: str = "Please try again"
words__power: str = "Power"
words__provider: str = "Provider"
words__provider: str = "Provider:"
words__really_wanna: str = "Do you really want to"
words__receive: str = "Receive"
words__recipient: str = "Recipient"
words__recipient: str = "Recipient:"
words__recovery_share: str = "Recovery share"
words__review: str = "Review"
words__security: str = "Security"
words__send: str = "Send"
words__send: str = "Send:"
words__set: str = "Set"
words__settings: str = "Settings"
words__show_next: str = "Show next"

View File

@@ -108,9 +108,9 @@ async def show_native_script(
script_type_name_suffix = ""
if script_type == CNST.PUB_KEY:
if key_path:
script_type_name_suffix = "path"
script_type_name_suffix = "path:"
elif key_hash:
script_type_name_suffix = "hash"
script_type_name_suffix = "hash:"
props: list[StrPropertyType] = [
(
@@ -767,9 +767,9 @@ async def confirm_stake_pool_parameters(
(TR.cardano__pool_reward_account, pool_parameters.reward_account, True),
(
None,
f"{TR.cardano__pledge}: {format_coin_amount(pool_parameters.pledge, network_id)}\n"
+ f"{TR.cardano__cost}: {format_coin_amount(pool_parameters.cost, network_id)}\n"
+ f"{TR.cardano__margin}: {percentage_formatted}%",
f"{TR.cardano__pledge} {format_coin_amount(pool_parameters.pledge, network_id)}\n"
+ f"{TR.cardano__cost} {format_coin_amount(pool_parameters.cost, network_id)}\n"
+ f"{TR.cardano__margin} {percentage_formatted}%",
None,
),
),

View File

@@ -62,7 +62,7 @@ async def require_confirm_set_delegate(fee: int) -> None:
await confirm_metadata(
"confirm_delegation_final",
TR.tezos__confirm_delegation,
f"{TR.words__fee}:\n{{}}",
f"{TR.words__fee}\n{{}}",
format_tezos_amount(fee),
BR_SIGN_TX,
hold=True,
@@ -131,7 +131,7 @@ async def require_confirm_manager_remove_delegate(fee: int) -> None:
await confirm_metadata(
"confirm_undelegation_final",
TR.tezos__remove_delegation,
f"{TR.words__fee}:\n{{}}",
f"{TR.words__fee}\n{{}}",
format_tezos_amount(fee),
BR_SIGN_TX,
hold=True,

View File

@@ -851,7 +851,7 @@ def confirm_amount(
br_name: str = "confirm_amount",
br_code: ButtonRequestType = BR_CODE_OTHER,
) -> Awaitable[None]:
description = description or f"{TR.words__amount}:" # def_arg
description = description or TR.words__amount # def_arg
return confirm_value(
title,
amount,
@@ -1071,9 +1071,9 @@ if not utils.BITCOIN_ONLY:
) -> None:
if is_send:
description = f"{TR.words__recipient}:"
description = TR.words__recipient
else:
description = f"{TR.ethereum__interaction_contract}:" if recipient else None
description = TR.ethereum__interaction_contract if recipient else None
address_layout = trezorui_api.confirm_value(
title=TR.words__address,
@@ -1085,7 +1085,7 @@ if not utils.BITCOIN_ONLY:
chunkify=(chunkify if recipient else False),
)
items = list(
items: list[StrPropertyType] = list(
(
(TR.words__account, account, None),
(TR.address_details__derivation_path, account_path, None),
@@ -1100,9 +1100,9 @@ if not utils.BITCOIN_ONLY:
total_layout = trezorui_api.confirm_summary(
amount=total_amount,
amount_label=f"{TR.words__amount}:",
amount_label=TR.words__amount,
fee=maximum_fee,
fee_label=f"{TR.send__maximum_fee}:",
fee_label=TR.send__maximum_fee,
title=TR.words__title_summary,
extra_items=extra_items, # used so that info button is shown
extra_title=TR.confirm_total__title_fee,
@@ -1357,7 +1357,7 @@ if not utils.BITCOIN_ONLY:
confirm_layout = trezorui_api.confirm_value(
title=title,
description=description,
extra=f"{TR.words__provider}:" if vote_account else None,
extra=TR.words__provider if vote_account else None,
value=vote_account,
verb=TR.buttons__continue,
info=True,
@@ -1669,7 +1669,7 @@ async def confirm_modify_output(
value=address,
verb=TR.buttons__continue,
verb_cancel=None,
description=TR.words__address + ":",
description=TR.words__address,
),
"modify_output" if send_button_request else None,
ButtonRequestType.ConfirmOutput,

View File

@@ -910,7 +910,7 @@ def confirm_amount(
br_name: str = "confirm_amount",
br_code: ButtonRequestType = BR_CODE_OTHER,
) -> Awaitable[None]:
description = description or f"{TR.words__amount}:" # def_arg
description = description or TR.words__amount # def_arg
return confirm_blob(
br_name,
title,
@@ -1249,7 +1249,7 @@ if not utils.BITCOIN_ONLY:
amount_title = verb
amount_value = ""
else:
amount_title = f"{TR.words__amount}:"
amount_title = TR.words__amount
amount_value = total_amount
await raise_if_not_confirmed(
trezorui_api.confirm_summary(
@@ -1348,7 +1348,7 @@ if not utils.BITCOIN_ONLY:
items.append(blockhash_item)
if vote_account:
description = f"{description}\n{TR.words__provider}:"
description = f"{description}\n{TR.words__provider}"
title = None # so the layout will fit in a single page
else:
description = f"\n{description}"
@@ -1707,7 +1707,7 @@ async def confirm_modify_output(
title=TR.modify_amount__title,
value=address,
verb=TR.buttons__continue,
description=f"{TR.words__address}:",
description=TR.words__address,
)
modify_layout = trezorui_api.confirm_modify_output(

View File

@@ -855,7 +855,7 @@ def confirm_amount(
br_name: str = "confirm_amount",
br_code: ButtonRequestType = BR_CODE_OTHER,
) -> Awaitable[ui.UiResult]:
description = description or f"{TR.words__amount}:" # def_arg
description = description or TR.words__amount # def_arg
return confirm_value(
title,
amount,
@@ -1310,7 +1310,7 @@ if not utils.BITCOIN_ONLY:
br_code: ButtonRequestType = ButtonRequestType.SignTx,
) -> Awaitable[None]:
amount_title = (
amount_title if amount_title is not None else f"{TR.words__amount}:"
amount_title if amount_title is not None else TR.words__amount
) # def_arg
fee_title = fee_title or TR.words__fee # def_arg
return _confirm_summary(
@@ -1347,7 +1347,7 @@ if not utils.BITCOIN_ONLY:
title=title,
subtitle=None,
description=description,
extra=f"\n{TR.words__provider}:" if vote_account else None,
extra=f"\n{TR.words__provider}" if vote_account else None,
message=vote_account,
chunkify=True,
text_mono=True,
@@ -1635,7 +1635,7 @@ async def confirm_modify_output(
value=address,
verb=TR.buttons__continue,
verb_cancel=None,
description=f"{TR.words__address}:",
description=TR.words__address,
)
modify_layout = trezorui_api.confirm_modify_output(
sign=sign,

View File

@@ -865,7 +865,7 @@ def confirm_amount(
br_name: str = "confirm_amount",
br_code: ButtonRequestType = BR_CODE_OTHER,
) -> Awaitable[None]:
description = description or f"{TR.words__send}:" # def_arg
description = description or TR.words__send # def_arg
return confirm_value(
title,
amount,
@@ -1337,7 +1337,7 @@ if not utils.BITCOIN_ONLY:
br_code: ButtonRequestType = ButtonRequestType.SignTx,
) -> Awaitable[None]:
amount_title = (
amount_title if amount_title is not None else f"{TR.words__amount}:"
amount_title if amount_title is not None else TR.words__amount
) # def_arg
fee_title = fee_title or TR.words__fee # def_arg
return _confirm_summary(

View File

@@ -356,9 +356,19 @@
"Delizia": "Auxiliary data hash",
"Eckhart": "Auxiliary data hash"
},
"cardano__block": "Block",
"cardano__block": {
"Bolt": "Block:",
"Caesar": "Block:",
"Delizia": "Block",
"Eckhart": "Block"
},
"cardano__catalyst": "Catalyst",
"cardano__certificate": "Certificate",
"cardano__certificate": {
"Bolt": "Certificate:",
"Caesar": "Certificate:",
"Delizia": "Certificate",
"Eckhart": "Certificate"
},
"cardano__change_output": "Change output",
"cardano__check_all_items": "Check all items carefully.",
"cardano__choose_level_of_details": "Choose level of details:",
@@ -383,12 +393,7 @@
"cardano__confirming_a_plutus_transaction": "Confirming a Plutus transaction.",
"cardano__confirming_pool_registration": "Confirming pool registration as owner.",
"cardano__confirming_transaction": "Confirming a transaction.",
"cardano__cost": {
"Bolt": "Cost:",
"Caesar": "Cost:",
"Delizia": "Cost",
"Eckhart": "Cost"
},
"cardano__cost": "Cost:",
"cardano__credential_mismatch": "Credential doesn't match payment credential.",
"cardano__datum_hash": {
"Bolt": "Datum hash:",
@@ -462,12 +467,7 @@
"cardano__intro_text_owned_by_device": "The following address is owned by this device. Its",
"cardano__intro_text_registration_payment": "The vote key registration payment address is owned by this device. Its",
"cardano__key_hash": "key hash",
"cardano__margin": {
"Bolt": "Margin:",
"Caesar": "Margin:",
"Delizia": "Margin",
"Eckhart": "Margin"
},
"cardano__margin": "Margin:",
"cardano__message_hash": {
"Bolt": "Message hash:",
"Caesar": "Message hash:",
@@ -492,13 +492,13 @@
"Eckhart": "Nonce"
},
"cardano__other": "Other",
"cardano__path": "path",
"cardano__pledge": {
"Bolt": "Pledge:",
"Caesar": "Pledge:",
"Delizia": "Pledge",
"Eckhart": "Pledge"
"cardano__path": {
"Bolt": "path:",
"Caesar": "path:",
"Delizia": "path",
"Eckhart": "path"
},
"cardano__pledge": "Pledge:",
"cardano__pointer": "pointer",
"cardano__policy_id": "Policy ID",
"cardano__pool_metadata_hash": {
@@ -538,7 +538,12 @@
"Eckhart": "Reference input index"
},
"cardano__reference_script": "Reference script",
"cardano__required_signer": "Required signer",
"cardano__required_signer": {
"Bolt": "Required signer:",
"Caesar": "Required signer:",
"Delizia": "Required signer",
"Eckhart": "Required signer"
},
"cardano__reward": "Reward",
"cardano__reward_address": "Address is a reward address.",
"cardano__reward_eligibility_warning": "Warning: The address is not a payment address, it is not eligible for rewards.",
@@ -548,9 +553,24 @@
"Delizia": "Rewards go to",
"Eckhart": "Rewards go to"
},
"cardano__script": "script",
"cardano__script_all": "All",
"cardano__script_any": "Any",
"cardano__script": {
"Bolt": "script:",
"Caesar": "script:",
"Delizia": "script",
"Eckhart": "script"
},
"cardano__script_all": {
"Bolt": "All:",
"Caesar": "All:",
"Delizia": "All",
"Eckhart": "All"
},
"cardano__script_any": {
"Bolt": "Any:",
"Caesar": "Any:",
"Delizia": "Any",
"Eckhart": "Any"
},
"cardano__script_data_hash": {
"Bolt": "Script data hash:",
"Caesar": "Script data hash:",
@@ -563,10 +583,25 @@
"Delizia": "Script hash",
"Eckhart": "Script hash"
},
"cardano__script_invalid_before": "Invalid before",
"cardano__script_invalid_hereafter": "Invalid hereafter",
"cardano__script_invalid_before": {
"Bolt": "Invalid before:",
"Caesar": "Invalid before:",
"Delizia": "Invalid before",
"Eckhart": "Invalid before"
},
"cardano__script_invalid_hereafter": {
"Bolt": "Invalid hereafter:",
"Caesar": "Invalid hereafter:",
"Delizia": "Invalid hereafter",
"Eckhart": "Invalid hereafter"
},
"cardano__script_key": "Key",
"cardano__script_n_of_k": "N of K",
"cardano__script_n_of_k": {
"Bolt": "N of K:",
"Caesar": "N of K:",
"Delizia": "N of K",
"Eckhart": "N of K"
},
"cardano__script_reward": "Script reward",
"cardano__sending": "Sending",
"cardano__show_simple": "Show Simple",
@@ -597,7 +632,12 @@
"Delizia": "Total collateral",
"Eckhart": "Total collateral"
},
"cardano__transaction": "Transaction",
"cardano__transaction": {
"Bolt": "Transaction:",
"Caesar": "Transaction:",
"Delizia": "Transaction",
"Eckhart": "Transaction"
},
"cardano__transaction_contains_minting_or_burning": "The transaction contains minting or burning of tokens.",
"cardano__transaction_contains_script_address_no_datum": "The following transaction output contains a script address, but does not contain a datum.",
"cardano__transaction_id": {
@@ -769,7 +809,7 @@
"Eckhart": ""
},
"eos__memo": {
"Bolt": "Memo",
"Bolt": "Memo:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -914,7 +954,12 @@
},
"ethereum__amount_sent": "Amount sent:",
"ethereum__approve": "Approve",
"ethereum__approve_amount_allowance": "Amount allowance",
"ethereum__approve_amount_allowance": {
"Bolt": "Amount allowance:",
"Caesar": "Amount allowance:",
"Delizia": "Amount allowance",
"Eckhart": "Amount allowance"
},
"ethereum__approve_chain_id": "Chain ID",
"ethereum__approve_intro": "Review details to approve token spending.",
"ethereum__approve_intro_revoke": "Review details to revoke token approval.",
@@ -933,8 +978,18 @@
"Eckhart": "Authorize the following contract as an EIP-7702 on your account?"
},
"ethereum__eip_7702_title": "Smart accounts",
"ethereum__gas_limit": "Gas limit",
"ethereum__gas_price": "Gas price",
"ethereum__gas_limit": {
"Bolt": "Gas limit:",
"Caesar": "Gas limit:",
"Delizia": "Gas limit",
"Eckhart": "Gas limit"
},
"ethereum__gas_price": {
"Bolt": "Gas price:",
"Caesar": "Gas price:",
"Delizia": "Gas price",
"Eckhart": "Gas price"
},
"ethereum__interaction_contract": {
"Bolt": "Interaction contract:",
"Caesar": "Interaction contract:",
@@ -1341,7 +1396,7 @@
"Eckhart": ""
},
"nem__confirm_transfer_of": {
"Bolt": "Confirm transfer of",
"Bolt": "Confirm transfer of:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -1365,13 +1420,13 @@
"Eckhart": ""
},
"nem__create_mosaic": {
"Bolt": "Create mosaic",
"Bolt": "Create mosaic:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
},
"nem__create_namespace": {
"Bolt": "Create namespace",
"Bolt": "Create namespace:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -1449,7 +1504,7 @@
"Eckhart": ""
},
"nem__levy_fee_of": {
"Bolt": "Confirm mosaic levy fee of",
"Bolt": "Confirm mosaic levy fee of:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -1479,7 +1534,7 @@
"Eckhart": ""
},
"nem__modify_supply_for": {
"Bolt": "Modify supply for",
"Bolt": "Modify supply for:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -1497,7 +1552,7 @@
"Eckhart": ""
},
"nem__of": {
"Bolt": "of",
"Bolt": "of:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -1557,7 +1612,7 @@
"Eckhart": ""
},
"nem__under_namespace": {
"Bolt": "under namespace",
"Bolt": "under namespace:",
"Caesar": "",
"Delizia": "",
"Eckhart": ""
@@ -2334,7 +2389,12 @@
"send__title_sending_amount": "Sending amount",
"send__title_sending_to": "Sending to",
"send__to_the_total_amount": "To the total amount:",
"send__total_amount": "Total amount",
"send__total_amount": {
"Bolt": "Total amount:",
"Caesar": "Total amount:",
"Delizia": "Total amount",
"Eckhart": "Total amount"
},
"send__transaction_id": "Transaction ID",
"send__transaction_signed": "Transaction signed",
"send__you_are_contributing": "You are contributing:",
@@ -2356,7 +2416,12 @@
"sign_message__confirm_address": "Signing address",
"sign_message__confirm_message": "Confirm message",
"sign_message__confirm_without_review": "Confirm without review",
"sign_message__message_size": "Message size",
"sign_message__message_size": {
"Bolt": "Message size:",
"Caesar": "Message size:",
"Delizia": "Message size",
"Eckhart": "Message size"
},
"sign_message__verify_address": "Verify address",
"sn__action": {
"Bolt": "",
@@ -2372,7 +2437,12 @@
},
"solana__account_index": "Account index",
"solana__associated_token_account": "Associated token account",
"solana__base_fee": "Base fee",
"solana__base_fee": {
"Bolt": "Base fee:",
"Caesar": "Base fee:",
"Delizia": "Base fee",
"Eckhart": "Base fee"
},
"solana__claim": "Claim",
"solana__claim_question": "Claim SOL from stake account?",
"solana__claim_recipient_warning": "Claiming SOL to address outside your current wallet.",
@@ -2383,7 +2453,12 @@
"solana__instruction_is_multisig": "The following instruction is a multisig instruction.",
"solana__is_provided_via_lookup_table_template": "{0} is provided via a lookup table.",
"solana__lookup_table_address": "Lookup table address",
"solana__max_fees_rent": "Max fees and rent",
"solana__max_fees_rent": {
"Bolt": "Max fees and rent:",
"Caesar": "Max fees and rent:",
"Delizia": "Max fees and rent",
"Eckhart": "Max fees and rent"
},
"solana__max_rent_fee": "Max rent fee",
"solana__multiple_signers": "Multiple signers",
"solana__priority_fee": "Priority fee",
@@ -2498,7 +2573,12 @@
"stellar__token_info": "Token info",
"stellar__transaction_source": "Transaction source",
"stellar__transaction_source_diff_warning": "Transaction source does not belong to this Trezor.",
"stellar__trusted_account": "Trusted Account",
"stellar__trusted_account": {
"Bolt": "Trusted Account:",
"Caesar": "Trusted Account:",
"Delizia": "Trusted Account",
"Eckhart": "Trusted Account"
},
"stellar__update": "Update",
"stellar__valid_from": "Valid from (UTC)",
"stellar__valid_to": "Valid to (UTC)",
@@ -2765,7 +2845,12 @@
},
"words__are_you_sure": "Are you sure?",
"words__array_of": "Array of",
"words__asset": "Asset",
"words__asset": {
"Bolt": "Asset:",
"Caesar": "Asset:",
"Delizia": "Asset",
"Eckhart": "Asset"
},
"words__assets": "Assets",
"words__authenticate": "Authenticate",
"words__blockhash": "Blockhash",
@@ -2773,9 +2858,19 @@
"words__buying": "Buying",
"words__cancel_and_exit": "Cancel and exit",
"words__cancel_question": "Cancel?",
"words__chain": "Chain",
"words__chain": {
"Bolt": "Chain:",
"Caesar": "Chain:",
"Delizia": "Chain",
"Eckhart": "Chain"
},
"words__comm_trouble": "Your Trezor is having trouble communicating with your connected device.",
"words__confirm": "Confirm",
"words__confirm": {
"Bolt": "Confirm:",
"Caesar": "Confirm:",
"Delizia": "Confirm",
"Eckhart": "Confirm"
},
"words__confirm_all": "Confirm all",
"words__confirm_fee": "Confirm fee",
"words__connect": "Connect",
@@ -2796,7 +2891,12 @@
"Delizia": "Fee",
"Eckhart": "Fee"
},
"words__fee_limit": "Fee limit",
"words__fee_limit": {
"Bolt": "Fee limit:",
"Caesar": "Fee limit:",
"Delizia": "Fee limit",
"Eckhart": "Fee limit"
},
"words__forget": "Forget",
"words__from": {
"Bolt": "from",
@@ -2900,8 +3000,18 @@
"Delizia": "",
"Eckhart": ""
},
"words__token": "Token",
"words__transaction_fee": "Transaction fee",
"words__token": {
"Bolt": "Token:",
"Caesar": "Token:",
"Delizia": "Token",
"Eckhart": "Token"
},
"words__transaction_fee": {
"Bolt": "Transaction fee:",
"Caesar": "Transaction fee:",
"Delizia": "Transaction fee",
"Eckhart": "Transaction fee"
},
"words__try_again": {
"Bolt": "Try again.",
"Caesar": "Try again.",