From 7d05a066e352cb751af089bce12d701afce3e3b5 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 --- editor/doc_tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp index 36ae19cb236..250182b8fc3 100644 --- a/editor/doc_tools.cpp +++ b/editor/doc_tools.cpp @@ -1375,7 +1375,7 @@ Error DocTools::save_classes(const String &p_default_path, const Map"); for (int i = 0; i < c.tutorials.size(); i++) { DocData::TutorialDoc tutorial = c.tutorials.get(i); - String title_attribute = (!tutorial.title.is_empty()) ? " title=\"" + tutorial.title.xml_escape() + "\"" : ""; + String title_attribute = (!tutorial.title.is_empty()) ? " title=\"" + _translate_doc_string(tutorial.title).xml_escape() + "\"" : ""; _write_string(f, 2, "" + tutorial.link.xml_escape() + ""); } _write_string(f, 1, "");