From 4a639cf543c15d45a37674d7eadaf09c23c2203d Mon Sep 17 00:00:00 2001 From: Zaba999 Date: Wed, 19 Sep 2012 00:04:21 +0200 Subject: Fixed includes in ui. --- src/app/app.cpp | 4 +++- src/app/app.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/app') diff --git a/src/app/app.cpp b/src/app/app.cpp index ab02b11..5567e42 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -261,6 +261,7 @@ bool CApplication::Create() /* Gettext initialization */ + m_locale = "LANGUAGE="; std::string locale = "C"; switch (m_language) { @@ -281,7 +282,8 @@ bool CApplication::Create() break; } - setenv("LANGUAGE", locale.c_str(), 1); + m_locale += locale; + putenv(m_locale.c_str()); setlocale(LC_ALL, locale.c_str()); std::string trPath = m_dataPath + std::string("/i18n"); diff --git a/src/app/app.h b/src/app/app.h index 8848be1..d3fa647 100644 --- a/src/app/app.h +++ b/src/app/app.h @@ -452,5 +452,9 @@ protected: //! Application language Language m_language; + +private: + //! Set locale, needed for putenv/setenv + std::string m_locale; }; -- cgit v1.2.3-1-g7c22