You are here

function i18n_language_list in Internationalization 5.3

Same name and namespace in other branches
  1. 5 i18n.module \i18n_language_list()
  2. 5.2 i18n.module \i18n_language_list()
  3. 6 i18n.module \i18n_language_list()
  4. 7 i18n.module \i18n_language_list()

Get localized language list, sort alphabetically

Parameters

$all: TRUE for all languages, not only enabled

2 calls to i18n_language_list()
i18n_node_language_list in ./i18n.module
Get allowed languages for node
_i18n_language_select in ./i18n.module
Helper function to create language selector

File

./i18n.module, line 380
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];
}