| 5959 | } |
| 5960 | |
| 5961 | String TTRN(const String &p_text, const String &p_text_plural, int p_n, const String &p_context) { |
| 5962 | if (TranslationServer::get_singleton()) { |
| 5963 | return TranslationServer::get_singleton()->tool_translate_plural(p_text, p_text_plural, p_n, p_context); |
| 5964 | } |
| 5965 | |
| 5966 | // Return message based on English plural rule if translation is not possible. |
| 5967 | if (p_n == 1) { |
| 5968 | return p_text; |
| 5969 | } |
| 5970 | return p_text_plural; |
| 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. |