feat(ui): translate="no", and a title of several lines translated whole or line by line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-24 22:03:49 +03:00
parent 7605a0253c
commit 6bd3228990
9 changed files with 76 additions and 1 deletions

View file

@ -26,7 +26,9 @@ function ui_px(v: float) -> float {
if ui_be != null and ui_be.scale != null { return v * ui_be.scale() }
return v
}
var tr_no: bool = false # inside translate="no" while a frame is built
function ui_tr(s: string) -> string {
if tr_no { return s }
if ui_be != null and ui_be.translate != null { return ui_be.translate(s) }
return s
}