You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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:
@@ -43,7 +43,8 @@ void LinkButton::_shape() {
|
||||
text_buf->set_direction((TextServer::Direction)text_direction);
|
||||
}
|
||||
TS->shaped_text_set_bidi_override(text_buf->get_rid(), structured_text_parser(st_parser, st_args, xl_text));
|
||||
text_buf->add_string(xl_text, font, font_size, language);
|
||||
const String &lang = language.is_empty() ? _get_locale() : language;
|
||||
text_buf->add_string(xl_text, font, font_size, lang);
|
||||
|
||||
queue_accessibility_update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user