diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-29 22:41:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-29 22:41:07 +0200 |
commit | 961b9b30e3b941032b355decaa7171f2612b1f34 (patch) | |
tree | 202ce00369706a5e2583ea45dc9a1642f1dd2022 /scene/gui | |
parent | 10c015b7300d3a54fb4e60439aaee39fd8f35e5d (diff) | |
parent | 65101c9a204f6ef6ed05ab60f97518bf56f81127 (diff) |
Merge pull request #30932 from Dragoncraft89/master
Translate TabContainer titles, when inherited from node name
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 39c76e6646..be8f1cf36e 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -303,7 +303,7 @@ void TabContainer::_notification(int p_what) { // Draw the tab contents. Control *control = Object::cast_to<Control>(tabs[i + first_tab_cache]); - String text = control->has_meta("_tab_name") ? String(tr(String(control->get_meta("_tab_name")))) : String(control->get_name()); + String text = control->has_meta("_tab_name") ? String(tr(String(control->get_meta("_tab_name")))) : String(tr(control->get_name())); int x_content = tab_rect.position.x + tab_style->get_margin(MARGIN_LEFT); int top_margin = tab_style->get_margin(MARGIN_TOP); |