| 5971 | } |
| 5972 | |
| 5973 | String DTR(const String &p_text, const String &p_context) { |
| 5974 | // Comes straight from the XML, so remove indentation and any trailing whitespace. |
| 5975 | const String text = p_text.dedent().strip_edges(); |
| 5976 | |
| 5977 | if (TranslationServer::get_singleton()) { |
| 5978 | return String(TranslationServer::get_singleton()->doc_translate(text, p_context)).replace("$DOCS_URL", REDOT_VERSION_DOCS_URL); |
| 5979 | } |
| 5980 | |
| 5981 | return text.replace("$DOCS_URL", REDOT_VERSION_DOCS_URL); |
| 5982 | } |
| 5983 | |
| 5984 | String DTRN(const String &p_text, const String &p_text_plural, int p_n, const String &p_context) { |
| 5985 | const String text = p_text.dedent().strip_edges(); |
no test coverage detected