diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-27 23:36:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-27 23:36:53 +0300 |
commit | b2e94802333247f64369c1164215d26583abda20 (patch) | |
tree | 1721dc1f97f6c27f8b3d2bcae81a854573a281c5 /src/utils/gettexthelper.cpp | |
parent | 610b13d188cd3faf99b971eea58594b336a57edd (diff) | |
download | ManaVerse-b2e94802333247f64369c1164215d26583abda20.tar.gz ManaVerse-b2e94802333247f64369c1164215d26583abda20.tar.bz2 ManaVerse-b2e94802333247f64369c1164215d26583abda20.tar.xz ManaVerse-b2e94802333247f64369c1164215d26583abda20.zip |
Move environment functions into separate file.
Diffstat (limited to 'src/utils/gettexthelper.cpp')
-rw-r--r-- | src/utils/gettexthelper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp index 9fa1dc3e0..b4cb8af57 100644 --- a/src/utils/gettexthelper.cpp +++ b/src/utils/gettexthelper.cpp @@ -25,6 +25,7 @@ #include "configuration.h" #include "logger.h" +#include "utils/env.h" #include "utils/physfstools.h" #include <libintl.h> @@ -54,8 +55,8 @@ void GettextHelper::initLang() if (!lang.empty()) { - Client::setEnv("LANG", lang.c_str()); - Client::setEnv("LANGUAGE", lang.c_str()); + setEnv("LANG", lang.c_str()); + setEnv("LANGUAGE", lang.c_str()); } #ifdef ANDROID #ifdef USE_SDL2 |