diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-23 00:03:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 00:03:31 +0100 |
commit | 4bacb86f567805e30f89690e5bbfb7ca6e947bbe (patch) | |
tree | 354e37a1359075cbde5adb6f9430623f1ecce239 /scene/main/window.cpp | |
parent | 725552af69824aac1e49c41f509d0cfed0984561 (diff) | |
parent | 697c594cd897acb8d5193ebc82dcbbc91066b51d (diff) |
Merge pull request #46735 from fabriceci/fix-dialog-translation
Fix translations update in window & Dialogs (AcceptDialog/ConfirmationDialog/FileDialog) (Fix 39320, 39258 & 45887)
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r-- | scene/main/window.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index c146ae6869..bacb0030bb 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -232,7 +232,7 @@ void Window::_make_window() { DisplayServer::get_singleton()->window_set_current_screen(current_screen, window_id); DisplayServer::get_singleton()->window_set_max_size(max_size, window_id); DisplayServer::get_singleton()->window_set_min_size(min_size, window_id); - DisplayServer::get_singleton()->window_set_title(title, window_id); + DisplayServer::get_singleton()->window_set_title(tr(title), window_id); DisplayServer::get_singleton()->window_attach_instance_id(get_instance_id(), window_id); _update_window_size(); @@ -759,6 +759,10 @@ void Window::_notification(int p_what) { } } + if (p_what == NOTIFICATION_TRANSLATION_CHANGED) { + child_controls_changed(); + } + if (p_what == NOTIFICATION_EXIT_TREE) { if (transient) { _clear_transient(); |