You are here

function i18n_get_main_lang in Internationalization 5

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