Set editor's translation domain at root node

This commit is contained in:
Haoyu Qiu 2025-03-02 08:52:27 +08:00
parent 15ff450680
commit 7c8f81f1d0
3 changed files with 2 additions and 4 deletions

View file

@ -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);
}