Translate a short UI string based on session language.
(s: str)
| 2961 | Args: |
| 2962 | m: Parameter. |
| 2963 | |
| 2964 | Returns: |
| 2965 | Varies. |
| 2966 | """ |
| 2967 | txt = m.group(1) |
| 2968 | |
| 2969 | # Skip Jinja placeholders / code-like segments |
| 2970 | if "{{" in txt or "{%" in txt: |
no test coverage detected