| 84 | } |
| 85 | |
| 86 | void Translation::add_message(const StringName &p_src_text, const StringName &p_xlated_text, const StringName &p_context) { |
| 87 | translation_map[p_src_text] = p_xlated_text; |
| 88 | } |
| 89 | |
| 90 | void Translation::add_plural_message(const StringName &p_src_text, const Vector<String> &p_plural_xlated_texts, const StringName &p_context) { |
| 91 | WARN_PRINT("Translation class doesn't handle plural messages. Calling add_plural_message() on a Translation instance is probably a mistake. \nUse a derived Translation class that handles plurals, such as TranslationPO class"); |