summaryrefslogtreecommitdiff
path: root/src/utils/gettexthelper.cpp
diff options
context:
space:
mode:
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()
{