You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Translate link titles in classref XML
(cherry picked from commit 7d05a066e3)
This commit is contained in:
committed by
Rémi Verschelde
parent
c9f9e06775
commit
d09a023339
@@ -1097,7 +1097,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
|
|||||||
_write_string(f, 1, "<tutorials>");
|
_write_string(f, 1, "<tutorials>");
|
||||||
for (int i = 0; i < c.tutorials.size(); i++) {
|
for (int i = 0; i < c.tutorials.size(); i++) {
|
||||||
TutorialDoc tutorial = c.tutorials.get(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, 2, "<link" + title_attribute + ">" + tutorial.link.xml_escape() + "</link>");
|
||||||
}
|
}
|
||||||
_write_string(f, 1, "</tutorials>");
|
_write_string(f, 1, "</tutorials>");
|
||||||
|
|||||||
Reference in New Issue
Block a user