summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-02-17 11:11:23 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-02-17 11:11:23 +0800
commit7d05a066e352cb751af089bce12d701afce3e3b5 (patch)
tree87f20a222fddaa5a4002c112bbcd55302a0e7947
parent73ece5ba1962eb3c19ac529b8cb4ac18aefd5cac (diff)
Translate link titles in classref XML
-rw-r--r--editor/doc_tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp
index 36ae19cb23..250182b8fc 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<String, Str
_write_string(f, 1, "<tutorials>");
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, "<link" + title_attribute + ">" + tutorial.link.xml_escape() + "</link>");
}
_write_string(f, 1, "</tutorials>");