summaryrefslogtreecommitdiff
path: root/src/utils/gettexthelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-15 18:44:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-15 18:44:29 +0300
commit0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046 (patch)
tree47839023fd9bc4b24db413a462c39fea3d0911de /src/utils/gettexthelper.cpp
parentca2f3bafe8815e5cba06426f24ef7acad6e699f4 (diff)
downloadplus-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.gz
plus-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.bz2
plus-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.tar.xz
plus-0e7b238a3794a9d2bb8dbf66adfe65bf6f1f4046.zip
Fix compilation without hercules support.
Diffstat (limited to 'src/utils/gettexthelper.cpp')
-rw-r--r--src/utils/gettexthelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp
index 3d70ae3dd..2de5589dc 100644
--- a/src/utils/gettexthelper.cpp
+++ b/src/utils/gettexthelper.cpp
@@ -47,6 +47,7 @@ extern "C" char const *_nl_locale_name_default(void);
#include "debug.h"
+#if defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS)
static std::string setLangEnv()
{
std::string lang = config.getStringValue("lang");
@@ -63,7 +64,6 @@ static std::string setLangEnv()
}
#endif // defined(ENABLE_NLS) && defined(WIN32)
-#if defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS)
if (!lang.empty())
{
#ifdef WIN32
@@ -79,10 +79,10 @@ static std::string setLangEnv()
#endif // WIN32
}
-#endif // defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS)
return lang;
}
+#endif // defined(ENABLE_NLS) || defined(ENABLE_CUSTOMNLS)
void GettextHelper::initLang()
{