diff options
author | SkyJJ <jjchai01@hotmail.com> | 2020-07-16 10:52:06 +0200 |
---|---|---|
committer | SkyJJ <jjchai01@hotmail.com> | 2020-08-19 03:01:51 +0200 |
commit | c0d837a2ea9ca888f673485c4b9d8d9ae1936375 (patch) | |
tree | cf83368d74441ebc422952e60eafdc92fce2f203 /core/compressed_translation.h | |
parent | f568cede8d8a4a3f7051afd2ae8502deb09bc157 (diff) | |
download | redot-engine-c0d837a2ea9ca888f673485c4b9d8d9ae1936375.tar.gz |
Added plurals and context support to Translation
Diffstat (limited to 'core/compressed_translation.h')
-rw-r--r-- | core/compressed_translation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/compressed_translation.h b/core/compressed_translation.h index 4f9c422e1e..c8b3cd2330 100644 --- a/core/compressed_translation.h +++ b/core/compressed_translation.h @@ -79,7 +79,8 @@ protected: static void _bind_methods(); public: - virtual StringName get_message(const StringName &p_src_text) const override; //overridable for other implementations + virtual StringName get_message(const StringName &p_src_text, const StringName &p_context = "") const override; //overridable for other implementations + virtual StringName get_plural_message(const StringName &p_src_text, const StringName &p_plural_text, int p_n, const StringName &p_context = "") const override; void generate(const Ref<Translation> &p_from); PHashTranslation() {} |