function i18n_language in Internationalization 7
WARNING: Obsolete function, use other i18n_language_* instead.
Get global language object, make sure it is initialized
Parameters
$language: Language code or language object to convert to valid language object
2 calls to i18n_language()
- i18n_user_user_cancel_url in i18n_user/
i18n_user.module - Overrides user_pass_cancel_url(). Generates a localized URL to confirm an account cancellation request.
- i18n_user_user_pass_reset_url in i18n_user/
i18n_user.module - Overrides user_pass_reset_url(). Generates a unique and localized URL for a user to login and reset their password.
File
- ./
i18n.module, line 67 - Internationalization (i18n) module.
Code
function i18n_language($language = NULL) {
if ($language && ($language_object = i18n_language_object($language))) {
return $language_object;
}
else {
return i18n_language_interface();
}
}