translation.cpp: avoid warning when compiling without libintl

This commit is contained in:
Moritz Bunkus 2015-09-01 21:21:25 +02:00
parent 9a8fb00141
commit f185dd6615

View File

@ -133,9 +133,10 @@ translation_c::look_up_translation(int language_id, int sub_language_id) {
std::string
translation_c::get_default_ui_locale() {
std::string locale;
bool debug = debugging_c::requested("locale");
#if defined(HAVE_LIBINTL_H)
bool debug = debugging_c::requested("locale");
# if defined(SYS_WINDOWS)
std::string env_var = mtx::sys::get_environment_variable("LC_MESSAGES");
if (!env_var.empty() && (-1 != look_up_translation(env_var)))