function i18n_get_main_lang in Internationalization 5.2
Same name and namespace in other branches
- 5.3 i18n.module \i18n_get_main_lang()
- 5 i18n.module \i18n_get_main_lang()
Returns main language, two letter code
File
- ./
i18n.module, line 547 - Internationalization (i18n) module
Code
function i18n_get_main_lang($lang = NULL) {
$lang = $lang ? $lang : i18n_get_lang();
return substr($lang, 2);
}