You are here

function i18n_variable_language in Internationalization 7

Get variables language, make sure it is initialized

File

i18n_variable/i18n_variable.module, line 64
Internationalization (i18n) package. Multilingual variables API.

Code

function i18n_variable_language() {

  // If we've got a variables language, it will be that one
  if (!isset($GLOBALS[I18N_VARIABLE_LANGUAGE_TYPE])) {
    $GLOBALS[I18N_VARIABLE_LANGUAGE_TYPE] = i18n_language_interface();
  }
  return $GLOBALS[I18N_VARIABLE_LANGUAGE_TYPE];
}