summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-10-17 09:36:02 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-10-17 09:36:02 +0800
commit3dea83215c590f4dad7d755d42b77fea81171964 (patch)
treeb0d010debd0f644bd7f6254dae0f1b384fb3c240
parent04692d83cb8f61002f18ea1d954df8c558ee84f7 (diff)
downloadredot-engine-3dea83215c590f4dad7d755d42b77fea81171964.tar.gz
Fix some strings not caught by editor pseudolocalization
-rw-r--r--main/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 5206e9b84c..a96d2fb306 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -4013,12 +4013,12 @@ int Main::start() {
EditorNode *editor_node = nullptr;
if (editor) {
OS::get_singleton()->benchmark_begin_measure("Startup", "Editor");
- editor_node = memnew(EditorNode);
if (editor_pseudolocalization) {
translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
}
+ editor_node = memnew(EditorNode);
sml->get_root()->add_child(editor_node);
if (!_export_preset.is_empty()) {
@@ -4210,14 +4210,15 @@ int Main::start() {
if (project_manager) {
OS::get_singleton()->benchmark_begin_measure("Startup", "Project Manager");
Engine::get_singleton()->set_editor_hint(true);
- ProjectManager *pmanager = memnew(ProjectManager);
- ProgressDialog *progress_dialog = memnew(ProgressDialog);
- pmanager->add_child(progress_dialog);
if (editor_pseudolocalization) {
translation_server->get_editor_domain()->set_pseudolocalization_enabled(true);
}
+ ProjectManager *pmanager = memnew(ProjectManager);
+ ProgressDialog *progress_dialog = memnew(ProgressDialog);
+ pmanager->add_child(progress_dialog);
+
sml->get_root()->add_child(pmanager);
OS::get_singleton()->benchmark_end_measure("Startup", "Project Manager");
}