MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / toggle_language

Function toggle_language

Scripts/ButSystem.py:2950–2961  ·  view source on GitHub ↗

toggle_language. Route handler or application helper. This docstring was expanded to make future maintenance easier. Returns: Varies.

()

Source from the content-addressed store, hash-verified

2948 """Translate only visible text nodes between > and < (best-effort).
2949
2950 Strategy per text node:
2951 1) Apply explicit phrase replacements (TRANSLATIONS_EL / TRANSLATIONS_EN) sorted by length.
2952 2) Apply fallback word-level mapping (_WORD_MAP_EL / _WORD_MAP_EN).
2953 """
2954 def repl(m):
2955 """repl.
2956
2957Route handler or application helper.
2958
2959This docstring was expanded to make future maintenance easier.
2960
2961Args:
2962 m: Parameter.
2963
2964Returns:

Callers

nothing calls this directly

Calls 2

get_langFunction · 0.70
is_logged_inFunction · 0.70

Tested by

no test coverage detected