| 5998 | #endif |
| 5999 | |
| 6000 | String RTR(const String &p_text, const String &p_context) { |
| 6001 | if (TranslationServer::get_singleton()) { |
| 6002 | String rtr = TranslationServer::get_singleton()->tool_translate(p_text, p_context); |
| 6003 | if (rtr.is_empty() || rtr == p_text) { |
| 6004 | return TranslationServer::get_singleton()->translate(p_text, p_context); |
| 6005 | } |
| 6006 | return rtr; |
| 6007 | } |
| 6008 | |
| 6009 | return p_text; |
| 6010 | } |
| 6011 | |
| 6012 | String RTRN(const String &p_text, const String &p_text_plural, int p_n, const String &p_context) { |
| 6013 | if (TranslationServer::get_singleton()) { |
no test coverage detected