mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Translate link titles in classref XML
This commit is contained in:
parent
73ece5ba19
commit
7d05a066e3
1 changed files with 1 additions and 1 deletions
|
@ -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>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue