Browse Source

Fix TTR string for class reference tooltip

Fixes #27852.

(cherry picked from commit 38104bb89dfba6c4adb17b3e1cad8a6cd683c69d)
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
320105ff05
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

@@ -1736,7 +1736,7 @@ void ScriptEditor::_update_script_names() {
 
 			String name = eh->get_class();
 			Ref<Texture> icon = get_icon("Help", "EditorIcons");
-			String tooltip = name + TTR(" Class Reference");
+			String tooltip = vformat(TTR("%s Class Reference"), name);
 
 			_ScriptEditorItemData sd;
 			sd.icon = icon;