diff --git a/code/nel/src/misc/i18n.cpp b/code/nel/src/misc/i18n.cpp index f61bcddf6..1a1db0f00 100644 --- a/code/nel/src/misc/i18n.cpp +++ b/code/nel/src/misc/i18n.cpp @@ -382,9 +382,15 @@ std::string CI18N::getSystemLanguageCode () } } #else - // only keep 2 first characters if (lang.size() > 1) - _SystemLanguageCode = NLMISC::toLower(lang).substr(0, 2); + { + // only keep 2 first characters + lang = NLMISC::toLower(lang).substr(0, 2); + + // language code supported? + if (isLanguageCodeSupported(lang)) + _SystemLanguageCode = lang; + } #endif } }