function i18n_language_list in Internationalization 5
Same name and namespace in other branches
- 5.3 i18n.module \i18n_language_list()
- 5.2 i18n.module \i18n_language_list()
- 6 i18n.module \i18n_language_list()
- 7 i18n.module \i18n_language_list()
Get localized language list, sort alphabetically
Parameters
$all: TRUE for all languages, not only enabled
5 calls to i18n_language_list()
- i18n_node_language_list in ./
i18n.module - Get allowed languages for node
- i18n_views_handler_language in i18nviews/
i18nviews.module - i18n_views_language_list in i18nviews/
i18nviews.module - i18n_views_language_list_all in i18nviews/
i18nviews.module - _i18n_language_select in ./
i18n.module - Helper function to create language selector
File
- ./
i18n.module, line 336 - Internationalization (i18n) module
Code
function i18n_language_list($all = FALSE) {
static $languages;
$type = $all ? 'name' : 'active';
if (!isset($languages[$type])) {
$languages[$type] = array_map('t', i18n_languages($type));
asort($languages[$type]);
return $languages[$type];
}
return $languages[$type];
}