function i18n_get_lang in Internationalization 5.2
Same name and namespace in other branches
- 5 i18n.module \i18n_get_lang()
- 6 i18n.module \i18n_get_lang()
This one expects to be called first from common.inc
24 calls to i18n_get_lang()
- i18nblocks_block in i18nblocks/
i18nblocks.module - Implementation of hook_block()
- i18npanels_panels_admin_custom in contrib/
i18npanels.module - Callback to perform administrative functions on the content block
- i18npanels_panels_content_custom in contrib/
i18npanels.module - Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.
- i18nprofile_categories in i18nprofile/
i18nprofile.module - Returns translated categories
- i18nprofile_fields in i18nprofile/
i18nprofile.module - Returns field translations
File
- ./
i18n.module, line 25 - Internationalization (i18n) module
Code
function i18n_get_lang($setlanguage = NULL) {
static $i18n_language;
//see if the language is already set.
if ($setlanguage) {
$i18n_language = $setlanguage;
}
elseif ($i18n_language) {
return $i18n_language;
}
else {
_i18n_init();
return $i18n_language = _i18n_get_lang();
}
}