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