From 365973542c1b5abbf0d9320d85115f0ff24c3bbf Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 15 Jun 2010 15:50:37 +0000 Subject: Add TranslationManager::getTranslation variant taking/returning a Common::String (should fix WinCE build) svn-id: r49861 --- common/translation.cpp | 4 ++++ common/translation.h | 2 ++ 2 files changed, 6 insertions(+) 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. -- cgit v1.2.3