From 1ab2d843ab069cca513d9c3a38ef57c35fd82684 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 12 Feb 2024 14:30:32 +0100 Subject: [PATCH] chore(core): add missing template to the variable name [no changelog] --- core/embed/rust/librust_qstr.h | 2 +- .../rust/src/translations/generated/translated_string.rs | 6 +++--- core/mocks/trezortranslate_keys.pyi | 2 +- core/src/apps/management/change_language.py | 2 +- core/translations/cs.json | 2 +- core/translations/de.json | 2 +- core/translations/en.json | 2 +- core/translations/es.json | 2 +- core/translations/fr.json | 2 +- core/translations/order.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/embed/rust/librust_qstr.h b/core/embed/rust/librust_qstr.h index 7ed8f84161..3ec16abea2 100644 --- a/core/embed/rust/librust_qstr.h +++ b/core/embed/rust/librust_qstr.h @@ -443,7 +443,7 @@ static void _librust_qstrs(void) { MP_QSTR_joint__you_are_contributing; MP_QSTR_label; MP_QSTR_language; - MP_QSTR_language__change_to; + MP_QSTR_language__change_to_template; MP_QSTR_language__changed; MP_QSTR_language__progress; MP_QSTR_language__title; diff --git a/core/embed/rust/src/translations/generated/translated_string.rs b/core/embed/rust/src/translations/generated/translated_string.rs index 9702a9b4c0..257eb84f45 100644 --- a/core/embed/rust/src/translations/generated/translated_string.rs +++ b/core/embed/rust/src/translations/generated/translated_string.rs @@ -351,7 +351,7 @@ pub enum TranslatedString { joint__title = 338, joint__to_the_total_amount = 339, joint__you_are_contributing = 340, - language__change_to = 341, + language__change_to_template = 341, language__changed = 342, language__progress = 343, language__title = 344, @@ -1190,7 +1190,7 @@ impl TranslatedString { Self::joint__title => "JOINT TRANSACTION", Self::joint__to_the_total_amount => "To the total amount:", Self::joint__you_are_contributing => "You are contributing:", - Self::language__change_to => "Change language to {}?", + Self::language__change_to_template => "Change language to {}?", Self::language__changed => "Language changed successfully", Self::language__progress => "Changing language", Self::language__title => "LANGUAGE SETTINGS", @@ -2030,7 +2030,7 @@ impl TranslatedString { Qstr::MP_QSTR_joint__title => Some(Self::joint__title), Qstr::MP_QSTR_joint__to_the_total_amount => Some(Self::joint__to_the_total_amount), Qstr::MP_QSTR_joint__you_are_contributing => Some(Self::joint__you_are_contributing), - Qstr::MP_QSTR_language__change_to => Some(Self::language__change_to), + Qstr::MP_QSTR_language__change_to_template => Some(Self::language__change_to_template), Qstr::MP_QSTR_language__changed => Some(Self::language__changed), Qstr::MP_QSTR_language__progress => Some(Self::language__progress), Qstr::MP_QSTR_language__title => Some(Self::language__title), diff --git a/core/mocks/trezortranslate_keys.pyi b/core/mocks/trezortranslate_keys.pyi index 7e59f6d9b4..8dce4f45ff 100644 --- a/core/mocks/trezortranslate_keys.pyi +++ b/core/mocks/trezortranslate_keys.pyi @@ -344,7 +344,7 @@ class TR: joint__title: str = "JOINT TRANSACTION" joint__to_the_total_amount: str = "To the total amount:" joint__you_are_contributing: str = "You are contributing:" - language__change_to: str = "Change language to {}?" + language__change_to_template: str = "Change language to {}?" language__changed: str = "Language changed successfully" language__progress: str = "Changing language" language__title: str = "LANGUAGE SETTINGS" diff --git a/core/src/apps/management/change_language.py b/core/src/apps/management/change_language.py index 68f6bb08f5..6b0b62a5e2 100644 --- a/core/src/apps/management/change_language.py +++ b/core/src/apps/management/change_language.py @@ -166,7 +166,7 @@ async def _require_confirm_change_language( await confirm_action( "set_language", TR.language__title, - description=TR.language__change_to.format(lang), + description=TR.language__change_to_template.format(lang), verb="OK", # going for an international word, so it does not need translations br_code=ButtonRequestType.ProtectCall, ) diff --git a/core/translations/cs.json b/core/translations/cs.json index 5786787f06..e1213a1527 100644 --- a/core/translations/cs.json +++ b/core/translations/cs.json @@ -362,7 +362,7 @@ "joint__title": "SPOLEČNÁ TRANSAKCE", "joint__to_the_total_amount": "Celkové částce:", "joint__you_are_contributing": "Přispíváte:", - "language__change_to": "Změnit jazyk na {}?", + "language__change_to_template": "Změnit jazyk na {}?", "language__changed": "Jazyk byl úspěšně změněn", "language__progress": "Probíhá změna jazyka", "language__title": "NASTAVENÍ JAZYKA", diff --git a/core/translations/de.json b/core/translations/de.json index 2fa25c2fd0..d9fd6d4a36 100644 --- a/core/translations/de.json +++ b/core/translations/de.json @@ -362,7 +362,7 @@ "joint__title": "GEMEINSAME TRANSAKTION", "joint__to_the_total_amount": "Gesamtbetrag:", "joint__you_are_contributing": "Dein Anteil:", - "language__change_to": "Sprache auf {} ändern?", + "language__change_to_template": "Sprache auf {} ändern?", "language__changed": "Sprache erfolgreich geändert", "language__progress": "Sprache wird geändert", "language__title": "SPRACHEINSTELLUNGEN", diff --git a/core/translations/en.json b/core/translations/en.json index 991e4ed193..2b219f6f9c 100644 --- a/core/translations/en.json +++ b/core/translations/en.json @@ -349,7 +349,7 @@ "joint__title": "JOINT TRANSACTION", "joint__to_the_total_amount": "To the total amount:", "joint__you_are_contributing": "You are contributing:", - "language__change_to": "Change language to {}?", + "language__change_to_template": "Change language to {}?", "language__changed": "Language changed successfully", "language__progress": "Changing language", "language__title": "LANGUAGE SETTINGS", diff --git a/core/translations/es.json b/core/translations/es.json index b75caa4687..7772a04166 100644 --- a/core/translations/es.json +++ b/core/translations/es.json @@ -362,7 +362,7 @@ "joint__title": "TRANSACCIÓN CONJUNTA", "joint__to_the_total_amount": "Al importe total:", "joint__you_are_contributing": "Estás aportando:", - "language__change_to": "¿Cambiar el idioma a {}?", + "language__change_to_template": "¿Cambiar el idioma a {}?", "language__changed": "Idioma cambiado exitosamente", "language__progress": "Cambiando el idioma", "language__title": "CONFIGURACIÓN DEL IDIOMA", diff --git a/core/translations/fr.json b/core/translations/fr.json index 1eb86c7584..165f7fcc7e 100644 --- a/core/translations/fr.json +++ b/core/translations/fr.json @@ -362,7 +362,7 @@ "joint__title": "TRANSACTION COMMUNE", "joint__to_the_total_amount": "Au montant total:", "joint__you_are_contributing": "Votre contribution:", - "language__change_to": "Changer de langue en {} ?", + "language__change_to_template": "Changer de langue en {} ?", "language__changed": "Langue changée avec succès", "language__progress": "Changement de langue en cours", "language__title": "PARAMÈTRES DE LANGUE", diff --git a/core/translations/order.json b/core/translations/order.json index 4b2cc8a233..198f6d9d97 100644 --- a/core/translations/order.json +++ b/core/translations/order.json @@ -340,7 +340,7 @@ "338": "joint__title", "339": "joint__to_the_total_amount", "340": "joint__you_are_contributing", - "341": "language__change_to", + "341": "language__change_to_template", "342": "language__changed", "343": "language__progress", "344": "language__title",