spacr.qt.i18n_module_summaries¶
Localized one-line descriptions for spaCR’s built-in modules.
The stable application key is the lookup key. Keeping these longer strings outside the compact UI catalog makes them reviewable by fluent speakers and prevents term-by-term translation from corrupting scientific descriptions.
Functions¶
|
Return a reviewed module summary, falling back to |
|
Raise if the nine non-English catalogs drift out of alignment. |
Module Contents¶
- spacr.qt.i18n_module_summaries.module_summary(app_key: str, english: str, language: str | None = None) str[source]¶
Return a reviewed module summary, falling back to
english.Plugin modules and future built-ins therefore remain readable until their own translation catalog supplies an exact description.
- Parameters:
app_key – module key selecting the reviewed summary in
MODULE_SUMMARIES.english – the English summary, returned for English and as the last fallback; a reviewed translation is used only when this text’s SHA-256 matches the hash recorded at review time.