aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/translation.cpp4
-rw-r--r--common/translation.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/common/translation.cpp b/common/translation.cpp
index 3c5ff4d3c7..093f26510f 100644
--- a/common/translation.cpp
+++ b/common/translation.cpp
@@ -130,6 +130,10 @@ const char *TranslationManager::getTranslation(const char *message) {
return po2c_gettext(message);
}
+const char *TranslationManager::getCurrentCharset() {
+ return po2c_getcharset();
+}
+
String TranslationManager::getTranslation(const String &message) {
return po2c_gettext(message.c_str());
}
diff --git a/common/translation.h b/common/translation.h
index 0722ae44ae..277ac6f5c4 100644
--- a/common/translation.h
+++ b/common/translation.h
@@ -121,6 +121,11 @@ public:
*/
const TLangArray getSupportedLanguages() const;
+ /**
+ * Returns charset specified by selected translation language
+ */
+ const char *getCurrentCharset();
+
private:
Common::String _syslang;
};