diff --git a/core/embed/rust/src/translations/generated/translated_string.rs b/core/embed/rust/src/translations/generated/translated_string.rs index c005763b1d..641f28f447 100644 --- a/core/embed/rust/src/translations/generated/translated_string.rs +++ b/core/embed/rust/src/translations/generated/translated_string.rs @@ -528,7 +528,7 @@ pub enum TranslatedString { #[cfg(feature = "universal_fw")] fido__title_u2f_auth = 314, // "U2F authenticate" #[cfg(feature = "universal_fw")] - fido__title_u2f_register = 315, // "U2F register" + fido__title_u2f_register = 315, // {"Bolt": "U2F register", "Samson": "U2F register", "Quicksilver": "U2F register"} #[cfg(feature = "universal_fw")] fido__title_verify_user = 316, // "FIDO2 verify user" #[cfg(feature = "universal_fw")] @@ -1906,6 +1906,13 @@ impl TranslatedString { #[cfg(feature = "universal_fw")] Self::fido__title_u2f_auth => "U2F authenticate", #[cfg(feature = "universal_fw")] + #[cfg(feature = "layout_bolt")] + Self::fido__title_u2f_register => "U2F register", + #[cfg(feature = "universal_fw")] + #[cfg(feature = "layout_samson")] + Self::fido__title_u2f_register => "U2F register", + #[cfg(feature = "universal_fw")] + #[cfg(feature = "layout_quicksilver")] Self::fido__title_u2f_register => "U2F register", #[cfg(feature = "universal_fw")] Self::fido__title_verify_user => "FIDO2 verify user", diff --git a/core/embed/rust/src/translations/generated/translated_string.rs.mako b/core/embed/rust/src/translations/generated/translated_string.rs.mako index 24251e0461..c8c194cc62 100644 --- a/core/embed/rust/src/translations/generated/translated_string.rs.mako +++ b/core/embed/rust/src/translations/generated/translated_string.rs.mako @@ -61,18 +61,22 @@ impl TranslatedString { <% value = en_data.get(name, '""') layouts_dict = value if isinstance(value, dict) else None + universal_fw = any(name.startswith(prefix + "__") for prefix in ALTCOIN_PREFIXES) %>\ - %if any(name.startswith(prefix + "__") for prefix in ALTCOIN_PREFIXES): +%if layouts_dict is not None: + % for layout_name, layout_value in layouts_dict.items(): + %if universal_fw: #[cfg(feature = "universal_fw")] - %endif - %if layouts_dict is not None: - % for layout_name, layout_value in layouts_dict.items(): + %endif #[cfg(feature = "${f"layout_{layout_name.lower()}"}")] Self::${name} => ${encode_str(layout_value)}, - % endfor - %else: + % endfor +%else: + %if universal_fw: + #[cfg(feature = "universal_fw")] + %endif Self::${name} => ${encode_str(value)}, - %endif +%endif % endfor } } diff --git a/core/translations/en.json b/core/translations/en.json index 501885add6..1bcba6ef95 100644 --- a/core/translations/en.json +++ b/core/translations/en.json @@ -357,7 +357,7 @@ "fido__title_reset": "FIDO2 reset", "fido__title_select_credential": "Select credential", "fido__title_u2f_auth": "U2F authenticate", - "fido__title_u2f_register": "U2F register", + "fido__title_u2f_register": {"Bolt": "U2F register", "Samson": "U2F register", "Quicksilver": "U2F register"}, "fido__title_verify_user": "FIDO2 verify user", "fido__unable_to_verify_user": "Unable to verify user.", "fido__wanna_erase_credentials": "Do you really want to erase all credentials?",