From 44bec97d5ea354458c1a48f3d7a03263b05fa8c1 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 23 Jun 2023 12:21:56 +0200 Subject: [PATCH] Unify window title format --- editor/plugins/script_editor_plugin.cpp | 2 +- editor/plugins/shader_editor_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index c23a96bede4..1d449d79a69 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -4259,7 +4259,7 @@ void ScriptEditorPlugin::edited_scene_changed() { ScriptEditorPlugin::ScriptEditorPlugin() { window_wrapper = memnew(WindowWrapper); - window_wrapper->set_window_title(TTR("Script Editor - Godot Engine")); + window_wrapper->set_window_title(vformat(TTR("%s - Godot Engine"), TTR("Script Editor"))); window_wrapper->set_margins_enabled(true); script_editor = memnew(ScriptEditor(window_wrapper)); diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index b27bd492665..268828e8f53 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -559,7 +559,7 @@ void ShaderEditorPlugin::_notification(int p_what) { ShaderEditorPlugin::ShaderEditorPlugin() { window_wrapper = memnew(WindowWrapper); - window_wrapper->set_window_title(TTR("Shader Editor - Godot Engine")); + window_wrapper->set_window_title(vformat(TTR("%s - Godot Engine"), TTR("Shader Editor"))); window_wrapper->set_margins_enabled(true); main_split = memnew(HSplitContainer);