summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorfabriceci <fabricecipolla@gmail.com>2021-03-06 17:51:27 +0100
committerfabriceci <fabricecipolla@gmail.com>2021-03-12 17:51:33 +0100
commit697c594cd897acb8d5193ebc82dcbbc91066b51d (patch)
tree9011e7af7fb08158791e3b860701b5c3ecf238ac /scene/main
parentadf233ed0436a0564db7682b4ce0931656d4c392 (diff)
fix translation not updating in ConfirmationDialog (and Window by inheritance)
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/window.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index d697a1a5dd..8f3e82ad73 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();