Repository: godotengine/godot (language: cpp)

Issue:
Quit confirmation dialog has untranslated strings
### Tested versions

4.4 rc2

### System information

W10

### Issue description

The confirmation dialog for unsaved changes when exiting has 2 strings that aren't translating:

![Image](https://github.com/user-attachments/assets/c9e9e535-fdc2-4e04-bdc8-6b4138d76bbb)

The title and the Cancel button. Both strings exist in translation, just this dialog refused to translate them. It translates everything else correctly.
Might be general issue with ConfirmationDialog.

### Steps to reproduce

0. Make sure your editor language is not English
1. Open a scene
2. Make a change
3. Try to close the editor and look at the confirmation dialog

### Minimal reproduction project (MRP)

N/A


Discussion / hints:

Fix patch:
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 6b725240f9e2..f1d13123d659 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -6848,8 +6848,6 @@ EditorNode::EditorNode() {
 	DEV_ASSERT(!singleton);
 	singleton = this;
 
-	set_translation_domain("godot.editor");
-
 	Resource::_get_local_scene_func = _resource_get_edited_scene;
 
 	{
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index c3bd3acf775f..19bcfe8bc516 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -1162,8 +1162,6 @@ void ProjectManager::_titlebar_resized() {
 ProjectManager::ProjectManager(bool p_custom_res) {
 	singleton = this;
 
-	set_translation_domain("godot.editor");
-
 	// Turn off some servers we aren't going to be using in the Project Manager.
 	NavigationServer3D::get_singleton()->set_active(false);
 	PhysicsServer3D::get_singleton()->set_active(false);
diff --git a/main/main.cpp b/main/main.cpp
index 10064b350376..e65f894c549f 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -4115,6 +4115,7 @@ int Main::start() {
 		if (editor) {
 			OS::get_singleton()->benchmark_begin_measure("Startup", "Editor");
 
+			sml->get_root()->set_translation_domain("godot.editor");
 			if (editor_pseudolocalization) {
 				translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
 			}
@@ -4312,6 +4313,7 @@ int Main::start() {
 			OS::get_singleton()->benchmark_begin_measure("Startup", "Project Manager");
 			Engine::get_singleton()->set_editor_hint(true);
 
+			sml->get_root()->set_translation_domain("godot.editor");
 			if (editor_pseudolocalization) {
 				translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
 			}


Test patch: