summaryrefslogtreecommitdiffstats
path: root/core/translation.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-05-03 22:25:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-05-03 22:25:37 -0300
commit567cb691ec49844101247bb9dc34bc2722f6af4f (patch)
treecaa577fdc22feec8869e66b32be34db0c90f8aa8 /core/translation.h
parentc7e8def44696da9ddf0b459e166280668c84c4cb (diff)
downloadredot-engine-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.gz
Modified editor strings to be translatable in the future
Diffstat (limited to 'core/translation.h')
-rw-r--r--core/translation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/translation.h b/core/translation.h
index 5be6b8913a..cdb22bfeca 100644
--- a/core/translation.h
+++ b/core/translation.h
@@ -75,6 +75,7 @@ class TranslationServer : public Object {
Set< Ref<Translation> > translations;
+ Ref<Translation> tool_translation;
bool enabled;
@@ -102,6 +103,9 @@ public:
static Vector<String> get_all_locales();
static Vector<String> get_all_locale_names();
+ void set_tool_translation(const Ref<Translation>& p_translation);
+ StringName tool_translate(const StringName& p_message) const;
+
void setup();
void clear();