()
| 3100 | |
| 3101 | def _(s: str) -> str: |
| 3102 | """Translate a short UI string based on session language.""" |
| 3103 | if get_lang() == "el": |
| 3104 | return TRANSLATIONS_EL.get(s, s) |
| 3105 | return s |
| 3106 | |
| 3107 | # Make _() available in all templates (optional direct use). |
| 3108 | try: |
| 3109 | app.jinja_env.globals["_"] = _ |
nothing calls this directly
no outgoing calls
no test coverage detected