diff options
author | O01eg <o01eg@yandex.ru> | 2021-09-29 14:18:45 +0300 |
---|---|---|
committer | O01eg <o01eg@yandex.ru> | 2021-09-29 14:19:14 +0300 |
commit | 9302b6547a4779de5f8f81817482493cad6fa7c3 (patch) | |
tree | c29960a66e9749340a6166cb6bef59d3b282d98b /core/string/translation.h | |
parent | e2e1a5099c80332b8722e61f257cbfcbe8e0e2db (diff) | |
download | redot-engine-9302b6547a4779de5f8f81817482493cad6fa7c3.tar.gz |
Implement override of get_message and get_plural_message
Diffstat (limited to 'core/string/translation.h')
-rw-r--r-- | core/string/translation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/string/translation.h b/core/string/translation.h index 4f179ac0fe..6aec0bb8ea 100644 --- a/core/string/translation.h +++ b/core/string/translation.h @@ -32,6 +32,8 @@ #define TRANSLATION_H #include "core/io/resource.h" +#include "core/object/gdvirtual.gen.inc" +#include "core/object/script_language.h" class Translation : public Resource { GDCLASS(Translation, Resource); @@ -48,6 +50,9 @@ class Translation : public Resource { protected: static void _bind_methods(); + GDVIRTUAL2RC(StringName, _get_message, StringName, StringName); + GDVIRTUAL4RC(StringName, _get_plural_message, StringName, StringName, int, StringName); + public: void set_locale(const String &p_locale); _FORCE_INLINE_ String get_locale() const { return locale; } |