You are here

function i18n_language_interface in Internationalization 7

Get interface language, make sure it is initialized.

4 calls to i18n_language_interface()
i18n_language in ./i18n.module
WARNING: Obsolete function, use other i18n_language_* instead.
i18n_redirect_init in i18n_redirect/i18n_redirect.module
Implements hook_init()
i18n_taxonomy_field_formatter_view in i18n_taxonomy/i18n_taxonomy.module
Implements hook_field_formatter_view().
i18n_variable_language in i18n_variable/i18n_variable.module
Get variables language, make sure it is initialized

File

./i18n.module, line 97
Internationalization (i18n) module.

Code

function i18n_language_interface() {
  if (empty($GLOBALS[LANGUAGE_TYPE_INTERFACE])) {

    // We don't have language yet, initialize the language system and retry
    drupal_bootstrap(DRUPAL_BOOTSTRAP_LANGUAGE);
  }
  return $GLOBALS[LANGUAGE_TYPE_INTERFACE];
}