aboutsummaryrefslogtreecommitdiff
path: root/common/translation.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/translation.h')
-rw-r--r--common/translation.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/translation.h b/common/translation.h
index 57c4cc2ac8..ff0a8a2acf 100644
--- a/common/translation.h
+++ b/common/translation.h
@@ -116,7 +116,7 @@ public:
* it returns the original untranslated message.
*/
String getTranslation(const String &message);
-
+
/**
* Returns the translation into the current language of the parameter
* message. In case the message isn't found in the translation catalog,
@@ -127,7 +127,7 @@ public:
* massage without a context or with a different context.
*/
const char *getTranslation(const char *message, const char *context);
-
+
/**
* Returns the translation into the current language of the parameter
* message. In case the message isn't found in the translation catalog,
@@ -151,6 +151,11 @@ public:
*/
const char *getCurrentCharset();
+ /**
+ * Returns currently selected translation language
+ */
+ const char *getCurrentLanguage();
+
private:
#ifdef USE_TRANSLATION
/**
@@ -208,6 +213,6 @@ private:
#define _s(str) str
#define _sc(str, ctxt) str
-#define DECLARE_TRANSLATION_ADDITIONAL_CONTEXT(str, ctxt)
+#define DECLARE_TRANSLATION_ADDITIONAL_CONTEXT(str, ctxt)
#endif