diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-28 13:21:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 13:21:39 +0200 |
commit | 6d63974af1292ac7209ae587d1559b4391fb5332 (patch) | |
tree | 9b30c4ae1960e9cf98a7ab55e9af05f4e2ee92d1 /core/ustring.cpp | |
parent | 055624d94b2988a137cc21e8136ab2f2c12132b2 (diff) | |
parent | a16031beb616906178ba7c10d3d2fbb6ff006285 (diff) |
Merge pull request #39118 from akien-mga/doc-l10n-propertyselector
Use translated docs in PropertySelector
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r-- | core/ustring.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 7dbaed9fbe..cfb547742a 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -4338,13 +4338,14 @@ String TTR(const String &p_text) { } String DTR(const String &p_text) { + // Comes straight from the XML, so remove indentation and any trailing whitespace. + const String text = p_text.dedent().strip_edges(); + if (TranslationServer::get_singleton()) { - // Comes straight from the XML, so remove indentation and any trailing whitespace. - const String text = p_text.dedent().strip_edges(); return TranslationServer::get_singleton()->doc_translate(text); } - return p_text; + return text; } #endif |