You are here

function i18n_get_main_lang in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_get_main_lang()
  2. 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);
}