admin_szolgáltatók_

This commit is contained in:
Roo
2026-07-01 02:27:38 +00:00
parent 189cbfd7ca
commit 6e627d0ebe
491 changed files with 20965 additions and 9703 deletions

View File

@@ -327,6 +327,23 @@ def reload_quiz_data() -> None:
logger.info("Quiz: Quiz data reloaded successfully")
# ── LocaleManager wrapper for email_manager compatibility ──────────────
class _LocaleManager:
"""
Wrapper providing a ``.get()`` interface around the ``t()`` function.
The ``email_manager`` module imports ``locale_manager`` and calls
``locale_manager.get(key, lang=lang, **variables)``. This class
delegates to the existing ``t()`` function so that no import breaks.
"""
@staticmethod
def get(key: str, lang: Optional[str] = None, **kwargs: Any) -> str:
return t(key, lang=lang, **kwargs)
locale_manager = _LocaleManager()
# ── Preload on import ──────────────────────────────────────────────────
_load_locales()
_load_quiz_data()