You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +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:
@@ -488,7 +488,8 @@ void FoldableContainer::_shape() {
|
||||
}
|
||||
text_buf->set_horizontal_alignment(_get_actual_alignment());
|
||||
text_buf->set_text_overrun_behavior(overrun_behavior);
|
||||
text_buf->add_string(atr(title), font, font_size, language);
|
||||
const String &lang = language.is_empty() ? _get_locale() : language;
|
||||
text_buf->add_string(atr(title), font, font_size, lang);
|
||||
}
|
||||
|
||||
HorizontalAlignment FoldableContainer::_get_actual_alignment() const {
|
||||
|
||||
Reference in New Issue
Block a user