Browse Source

Translate link titles in classref XML

(cherry picked from commit 7d05a066e352cb751af089bce12d701afce3e3b5)
Haoyu Qiu 3 years ago
parent
commit
d09a023339
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/doc/doc_data.cpp

+ 1 - 1
editor/doc/doc_data.cpp

@@ -1097,7 +1097,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
 		_write_string(f, 1, "<tutorials>");
 		for (int i = 0; i < c.tutorials.size(); i++) {
 			TutorialDoc tutorial = c.tutorials.get(i);
-			String title_attribute = (!tutorial.title.empty()) ? " title=\"" + tutorial.title.xml_escape() + "\"" : "";
+			String title_attribute = (!tutorial.title.empty()) ? " title=\"" + _translate_doc_string(tutorial.title).xml_escape() + "\"" : "";
 			_write_string(f, 2, "<link" + title_attribute + ">" + tutorial.link.xml_escape() + "</link>");
 		}
 		_write_string(f, 1, "</tutorials>");