MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / add_message

Method add_message

core/string/translation.cpp:86–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void 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
90void 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");

Callers 1

load_translationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected