Skip to content

Commit e5565a6

Browse files
committed
Merge pull request #103447 from timothyqiu/root-domain
Set editor's translation domain at root node
2 parents c301b2a + 7c8f81f commit e5565a6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

editor/editor_node.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6848,8 +6848,6 @@ EditorNode::EditorNode() {
68486848
DEV_ASSERT(!singleton);
68496849
singleton = this;
68506850

6851-
set_translation_domain("godot.editor");
6852-
68536851
Resource::_get_local_scene_func = _resource_get_edited_scene;
68546852

68556853
{

editor/project_manager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,6 @@ void ProjectManager::_titlebar_resized() {
11621162
ProjectManager::ProjectManager(bool p_custom_res) {
11631163
singleton = this;
11641164

1165-
set_translation_domain("godot.editor");
1166-
11671165
// Turn off some servers we aren't going to be using in the Project Manager.
11681166
NavigationServer3D::get_singleton()->set_active(false);
11691167
PhysicsServer3D::get_singleton()->set_active(false);

main/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4115,6 +4115,7 @@ int Main::start() {
41154115
if (editor) {
41164116
OS::get_singleton()->benchmark_begin_measure("Startup", "Editor");
41174117

4118+
sml->get_root()->set_translation_domain("godot.editor");
41184119
if (editor_pseudolocalization) {
41194120
translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
41204121
}
@@ -4312,6 +4313,7 @@ int Main::start() {
43124313
OS::get_singleton()->benchmark_begin_measure("Startup", "Project Manager");
43134314
Engine::get_singleton()->set_editor_hint(true);
43144315

4316+
sml->get_root()->set_translation_domain("godot.editor");
43154317
if (editor_pseudolocalization) {
43164318
translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
43174319
}

0 commit comments

Comments
 (0)