Make text-related nodes translation domain aware

- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
This commit is contained in:
Haoyu Qiu
2025-09-10 15:14:18 +08:00
parent 149a4b4ca1
commit 172c80df67
23 changed files with 132 additions and 101 deletions

View File

@ -167,7 +167,8 @@ void ProgressBar::_notification(int p_what) {
String txt = itos(int(ratio * 100));
if (is_localizing_numeral_system()) {
txt = TS->format_number(txt) + TS->percent_sign();
const String &lang = _get_locale();
txt = TS->format_number(txt, lang) + TS->percent_sign(lang);
} else {
txt += String("%");
}