sec_interp.core.utils.i18n module
Internationalization (i18n) utilities for SecInterp.
Provides standardized ways to handle translations across the project, especially for classes that do not inherit from QObject.
- class sec_interp.core.utils.i18n.TranslatableMixin
Bases:
objectMixin to provide a standardized tr() method for translations.
Classes using this mixin can call self.tr(“message”) to get the translated string using the class name as the translation context.
- tr(message: str) str
Translate a message using QCoreApplication.
- Parameters:
message – The source string to translate.
- Returns:
The translated string.