From d09a023339be84799d0a4b7981cb101d832557c0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 17 Feb 2022 11:11:23 +0800 Subject: [PATCH] Translate link titles in classref XML (cherry picked from commit 7d05a066e352cb751af089bce12d701afce3e3b5) --- editor/doc/doc_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 576b35fa912..a62f0987c6f 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -1097,7 +1097,7 @@ Error DocData::save_classes(const String &p_default_path, const Map"); 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, "" + tutorial.link.xml_escape() + ""); } _write_string(f, 1, "");