diff options
author | Max Horn | 2010-06-15 15:50:37 +0000 |
---|---|---|
committer | Max Horn | 2010-06-15 15:50:37 +0000 |
commit | 365973542c1b5abbf0d9320d85115f0ff24c3bbf (patch) | |
tree | c3b7f1aba56ff5bc3bc8ae6c5452bc43605005c6 | |
parent | b25aba1d1ed9c867bbb4ff1b6b7ef9ea075b3cd1 (diff) | |
download | scummvm-rg350-365973542c1b5abbf0d9320d85115f0ff24c3bbf.tar.gz scummvm-rg350-365973542c1b5abbf0d9320d85115f0ff24c3bbf.tar.bz2 scummvm-rg350-365973542c1b5abbf0d9320d85115f0ff24c3bbf.zip |
Add TranslationManager::getTranslation variant taking/returning a Common::String (should fix WinCE build)
svn-id: r49861
-rwxr-xr-x | common/translation.cpp | 4 | ||||
-rwxr-xr-x | common/translation.h | 2 |
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. |