// we have a mapping of the language codes that contains all the language
// codes that need the country code as well
// (like pt_BR, pt_PT, sv_SE, zh_*, en_*)
- const char *need_full_langcode[] = { "cs_",
- "en_",
+ const char *need_full_langcode[] = { "en_",
"pt_",
"sv_",
"zh_",
if(lang.find("_") != lang.npos)
return lang.substr(0, lang.find("_"));
+ else if(lang.find(".") != lang.npos)
+ return lang.substr(0, lang.find("."));
else
return lang;
}