fix(l10n): mark missing strings for translation
What changed, and why it matters
This commit only wraps a few user-visible English text strings with translation markers so they can be translated into other languages. It does not change program logic, access controls, cryptography, or any security behavior. There is no security issue here.
No security action needed. Treat as a normal localization fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds _mft() and _() calls around display strings in settings_definition.py and view.py. These are localization helpers that mark strings for extraction into translation catalogs. The change is purely i18n/l10n plumbing and has no functional or security effect.
Changed components
src/seedsigner/models/settings_definition.pysrc/seedsigner/views/view.pyInspect captured patch +5 / −5
diff --git a/src/seedsigner/models/settings_definition.py b/src/seedsigner/models/settings_definition.py
index e9310d1..974d2d5 100644
--- a/src/seedsigner/models/settings_definition.py
+++ b/src/seedsigner/models/settings_definition.py
@@ -298,9 +298,9 @@ class SettingsConstants:
MICROSD_TOAST_TIMER_FIVE_SECONDS = "E"
MICROSD_TOAST_TIMER_FOREVER = "inf"
ALL_MICROSD_TOAST_TIMERS = [
- (MICROSD_TOAST_TIMER_DISABLED, "Disabled"),
- (MICROSD_TOAST_TIMER_FIVE_SECONDS, "5 seconds"),
- (MICROSD_TOAST_TIMER_FOREVER, "Until SD removed")
+ (MICROSD_TOAST_TIMER_DISABLED, _mft("Disabled")),
+ (MICROSD_TOAST_TIMER_FIVE_SECONDS, _mft("5 seconds")),
+ (MICROSD_TOAST_TIMER_FOREVER, _mft("Until SD removed"))
]
WORDLIST_LANGUAGE__ENGLISH = "en"
@@ -670,7 +670,7 @@ class SettingsDefinition:
SettingsEntry(category=SettingsConstants.CATEGORY__FEATURES,
attr_name=SettingsConstants.SETTING__MICROSD_TOAST_TIMER,
- display_name="MicroSD toast timer",
+ display_name=_mft("MicroSD toast timer"),
type=SettingsConstants.TYPE__SELECT_1,
visibility=SettingsConstants.VISIBILITY__ADVANCED,
selection_options=SettingsConstants.ALL_MICROSD_TOAST_TIMERS,
diff --git a/src/seedsigner/views/view.py b/src/seedsigner/views/view.py
index e2ac1ad..a55252e 100644
--- a/src/seedsigner/views/view.py
+++ b/src/seedsigner/views/view.py
@@ -352,7 +352,7 @@ class NetworkMismatchErrorView(ErrorView):
# TRANSLATOR_NOTE: Inserts mainnet/testnet/regtest and derivation path
self.text = _("Current network setting ({}) doesn't match {}.").format(
- self.settings.get_value_display_name(SettingsConstants.SETTING__NETWORK),
+ _(self.settings.get_value_display_name(SettingsConstants.SETTING__NETWORK)),
self.derivation_path,
)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.