From 8d9071542ba9288bce275e6edda4689527b84b35 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 11 Apr 2022 12:50:10 +0800 Subject: [PATCH] Localize unnamed project name in editor window title (cherry picked from commit 35d087813981d05a699221f6bc7e5c72fc55c665) --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 526882ab3cb..a91b6897aa6 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -363,7 +363,7 @@ void EditorNode::_version_control_menu_option(int p_idx) { void EditorNode::_update_title() { const String appname = ProjectSettings::get_singleton()->get("application/config/name"); - String title = (appname.empty() ? "Unnamed Project" : appname) + String(" - ") + VERSION_NAME; + String title = (appname.empty() ? TTR("Unnamed Project") : appname) + String(" - ") + VERSION_NAME; const String edited = editor_data.get_edited_scene_root() ? editor_data.get_edited_scene_root()->get_filename() : String(); if (!edited.empty()) { // Display the edited scene name before the program name so that it can be seen in the OS task bar.