function locale_language_name
Same name and namespace in other branches
- 7.x drupal-7.x/modules/locale/locale.module \locale_language_name()
Returns a language name
Archivo
- drupal-6.x/
modules/ locale/ locale.module, line 439 - Add language handling functionality and enables the translation of the user interface to languages other than English.
Código
function locale_language_name($lang) {
static $list = NULL;
if (!isset($list)) {
$list = locale_language_list();
}
return ($lang && isset($list[$lang])) ? $list[$lang] : t('All');
}