Fixed: Compilation

--HG--
branch : develop
This commit is contained in:
kervala 2016-03-18 22:26:43 +01:00
parent cf20e21f83
commit f376317f10

View file

@ -382,11 +382,9 @@ std::string CI18N::getSystemLanguageCode ()
} }
} }
#else #else
std::string lang = NLMISC::toLower(lang);
// only keep 2 first characters // only keep 2 first characters
if (lang.size() > 1) if (lang.size() > 1)
_SystemLanguageCode = lang.substr(0, 2); _SystemLanguageCode = NLMISC::toLower(lang).substr(0, 2);
#endif #endif
} }
} }