1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-25 17:09:44 +00:00

chore(core/ui): use different copy on TS3 and TT

[no changelog]
This commit is contained in:
Ioan Bizău 2024-11-15 11:46:25 +01:00
parent 815316ad5c
commit c25b4bcdd4
14 changed files with 25 additions and 7 deletions

View File

@ -1021,6 +1021,7 @@ static void _librust_qstrs(void) {
MP_QSTR_ethereum__token_contract;
MP_QSTR_ethereum__units_template;
MP_QSTR_ethereum__unknown_contract_address;
MP_QSTR_ethereum__unknown_contract_address_short;
MP_QSTR_ethereum__unknown_token;
MP_QSTR_ethereum__valid_signature;
MP_QSTR_fido__already_registered;

View File

@ -1380,6 +1380,8 @@ pub enum TranslatedString {
#[cfg(feature = "universal_fw")]
ethereum__interaction_contract = 972, // "Interaction contract"
misc__enable_labeling = 973, // "Enable labeling?"
#[cfg(feature = "universal_fw")]
ethereum__unknown_contract_address_short = 974, // "Unknown contract address."
}
impl TranslatedString {
@ -2754,6 +2756,8 @@ impl TranslatedString {
#[cfg(feature = "universal_fw")]
Self::ethereum__interaction_contract => "Interaction contract",
Self::misc__enable_labeling => "Enable labeling?",
#[cfg(feature = "universal_fw")]
Self::ethereum__unknown_contract_address_short => "Unknown contract address.",
}
}
@ -4129,6 +4133,8 @@ impl TranslatedString {
#[cfg(feature = "universal_fw")]
Qstr::MP_QSTR_ethereum__interaction_contract => Some(Self::ethereum__interaction_contract),
Qstr::MP_QSTR_misc__enable_labeling => Some(Self::misc__enable_labeling),
#[cfg(feature = "universal_fw")]
Qstr::MP_QSTR_ethereum__unknown_contract_address_short => Some(Self::ethereum__unknown_contract_address_short),
_ => None,
}
}

View File

@ -327,6 +327,7 @@ class TR:
ethereum__token_contract: str = "Token contract"
ethereum__units_template: str = "{0} units"
ethereum__unknown_contract_address: str = "Unknown contract address. Continue only if you know what you are doing."
ethereum__unknown_contract_address_short: str = "Unknown contract address."
ethereum__unknown_token: str = "Unknown token"
ethereum__valid_signature: str = "The signature is valid."
experimental_mode__enable: str = "Enable experimental features?"

View File

@ -806,7 +806,9 @@ if not utils.BITCOIN_ONLY:
def confirm_ethereum_unknown_contract_warning() -> Awaitable[ui.UiResult]:
return show_warning(
"unknown_contract_warning",
TR.ethereum__unknown_contract_address,
TR.words__warning,
TR.ethereum__unknown_contract_address_short,
TR.words__continue_anyway,
)
async def confirm_ethereum_staking_tx(

View File

@ -773,8 +773,8 @@ if not utils.BITCOIN_ONLY:
def confirm_ethereum_unknown_contract_warning() -> Awaitable[None]:
return show_warning(
"unknown_contract_warning",
TR.ethereum__unknown_contract_address,
TR.words__warning,
TR.ethereum__unknown_contract_address_short,
TR.words__continue_anyway_question,
)
async def confirm_ethereum_tx(

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Kontrakt tokenu",
"ethereum__units_template": "Jednotky: {0}",
"ethereum__unknown_contract_address": "Neznámá adresa kontraktu. Pokračujte pouze, pokud víte, co děláte.",
"ethereum__unknown_contract_address_short": "Neznámá adresa kontraktu.",
"ethereum__unknown_token": "Neznámý token",
"ethereum__valid_signature": "Podpis je platný.",
"experimental_mode__enable": "Povolit experimentální funkce?",

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Tokenvertrag",
"ethereum__units_template": "{0} Einheiten",
"ethereum__unknown_contract_address": "Unbekannte Vertragsadresse. Weiter, nur wenn Sie wissen, was Sie tun.",
"ethereum__unknown_contract_address_short": "Unbekannte Vertragsadresse.",
"ethereum__unknown_token": "Ungültiger Token",
"ethereum__valid_signature": "Die Signatur ist gültig.",
"experimental_mode__enable": "Experimentelle Funktionen aktivieren?",

View File

@ -329,6 +329,7 @@
"ethereum__token_contract": "Token contract",
"ethereum__units_template": "{0} units",
"ethereum__unknown_contract_address": "Unknown contract address. Continue only if you know what you are doing.",
"ethereum__unknown_contract_address_short": "Unknown contract address.",
"ethereum__unknown_token": "Unknown token",
"ethereum__valid_signature": "The signature is valid.",
"experimental_mode__enable": "Enable experimental features?",

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Contrato de token",
"ethereum__units_template": "{0} unidades",
"ethereum__unknown_contract_address": "Dirección de contrato desconocida. Continúa solo si sabes lo que estás haciendo.",
"ethereum__unknown_contract_address_short": "Dirección de contrato desconocida.",
"ethereum__unknown_token": "Token desconocido",
"ethereum__valid_signature": "La firma es válida.",
"experimental_mode__enable": "¿Activar funciones experimentales?",

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Contrat de jeton",
"ethereum__units_template": "{0} unités",
"ethereum__unknown_contract_address": "Adresse de contrat inconnue. Continuez seulement si vous savez ce que vous faites.",
"ethereum__unknown_contract_address_short": "Adresse de contrat inconnue.",
"ethereum__unknown_token": "Jeton inconnu",
"ethereum__valid_signature": "Signature valide.",
"experimental_mode__enable": "Activer les fonct. expérimentales ?",

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Contratto token",
"ethereum__units_template": "{0} unità",
"ethereum__unknown_contract_address": "Indirizzo del contratto sconosciuto. Continua solo se sai cosa stai facendo.",
"ethereum__unknown_contract_address_short": "Indirizzo del contratto sconosciuto.",
"ethereum__unknown_token": "Token sconosciuto",
"ethereum__valid_signature": "La firma è valida.",
"experimental_mode__enable": "Abilitare funzion. sperimentali?",

View File

@ -972,5 +972,6 @@
"970": "buttons__view_all_data",
"971": "instructions__view_all_data",
"972": "ethereum__interaction_contract",
"973": "misc__enable_labeling"
"973": "misc__enable_labeling",
"974": "ethereum__unknown_contract_address_short"
}

View File

@ -371,6 +371,7 @@
"ethereum__token_contract": "Contrato Token",
"ethereum__units_template": "{0} unidades",
"ethereum__unknown_contract_address": "Endereço de contrato desconhecido. Continue somente se você sabe o que está fazendo.",
"ethereum__unknown_contract_address_short": "Endereço de contrato desconhecido.",
"ethereum__unknown_token": "Token desconhecido",
"ethereum__valid_signature": "A assinatura é válida.",
"experimental_mode__enable": "Ativar recursos experimentais?",

View File

@ -1,8 +1,8 @@
{
"current": {
"merkle_root": "d863418788a5cbc42706f33ff2c46c4d264611b0ef3a91b09d49968291f89d4d",
"datetime": "2024-11-06T16:17:17.038435",
"commit": "18d2372c106f5d7f7082183b07f9e61c0d02063c"
"merkle_root": "b998ddff78d4fee55f200f10cbbf3fee608c5d11d09268e5640ec7b3844065aa",
"datetime": "2024-11-15T10:26:30.070641",
"commit": "29da869e72a675e438f2a99f7c499ba67e19b517"
},
"history": [
{