diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-17 07:21:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 07:21:58 +0100 |
commit | 01a18724aa414aae397675919ab01036c943c99e (patch) | |
tree | 98eb735383bba77977dc308b233f2b0c17e64362 /editor | |
parent | 76f667bf2a58f1c87ceed34684e11d39510458c7 (diff) | |
parent | 7d05a066e352cb751af089bce12d701afce3e3b5 (diff) |
Merge pull request #58222 from timothyqiu/doctool-link-title-i18n
Translate link titles in classref XML
Diffstat (limited to 'editor')
-rw-r--r-- | editor/doc_tools.cpp | 2 |
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>"); |