summaryrefslogtreecommitdiff
path: root/src/utils/gettexthelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-27 23:36:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-27 23:36:53 +0300
commitb2e94802333247f64369c1164215d26583abda20 (patch)
tree1721dc1f97f6c27f8b3d2bcae81a854573a281c5 /src/utils/gettexthelper.cpp
parent610b13d188cd3faf99b971eea58594b336a57edd (diff)
downloadmv-b2e94802333247f64369c1164215d26583abda20.tar.gz
mv-b2e94802333247f64369c1164215d26583abda20.tar.bz2
mv-b2e94802333247f64369c1164215d26583abda20.tar.xz
mv-b2e94802333247f64369c1164215d26583abda20.zip
Move environment functions into separate file.
Diffstat (limited to 'src/utils/gettexthelper.cpp')
-rw-r--r--src/utils/gettexthelper.cpp5
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