aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommon/translation.cpp4
-rwxr-xr-xcommon/translation.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/common/translation.cpp b/common/translation.cpp
index 454bbaa402..7346441d27 100755
--- a/common/translation.cpp
+++ b/common/translation.cpp
@@ -108,6 +108,10 @@ const char *TranslationManager::getTranslation(const char *message) {
return po2c_gettext(message);
}
+String TranslationManager::getTranslation(const String &message) {
+ return po2c_gettext(message.c_str());
+}
+
#ifdef TERMCONV
bool TranslationManager::convert(const char *message) {
// Preparing conversion origin
diff --git a/common/translation.h b/common/translation.h
index 623a7ccd31..7be21df60f 100755
--- a/common/translation.h
+++ b/common/translation.h
@@ -100,6 +100,8 @@ public:
*/
const char *getTranslation(const char *message);
+ String getTranslation(const String &message);
+
/**
* Converts the message into the terminal character set (which may be
* different than the GUI's "native" one.