mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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
|
|
@ -517,7 +517,8 @@ void MenuBar::shape(Menu &p_menu) {
|
|||
} else {
|
||||
p_menu.text_buf->set_direction((TextServer::Direction)text_direction);
|
||||
}
|
||||
p_menu.text_buf->add_string(atr(p_menu.name), theme_cache.font, theme_cache.font_size, language);
|
||||
const String &lang = language.is_empty() ? _get_locale() : language;
|
||||
p_menu.text_buf->add_string(atr(p_menu.name), theme_cache.font, theme_cache.font_size, lang);
|
||||
}
|
||||
|
||||
void MenuBar::_refresh_menu_names() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue