mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
parent
149a4b4ca1
commit
172c80df67
23 changed files with 132 additions and 101 deletions
|
|
@ -600,7 +600,8 @@ void Button::_shape(Ref<TextParagraph> p_paragraph, String p_text) const {
|
|||
} else {
|
||||
p_paragraph->set_direction((TextServer::Direction)text_direction);
|
||||
}
|
||||
p_paragraph->add_string(p_text, font, font_size, language);
|
||||
const String &lang = language.is_empty() ? _get_locale() : language;
|
||||
p_paragraph->add_string(p_text, font, font_size, lang);
|
||||
p_paragraph->set_text_overrun_behavior(overrun_behavior);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue