function locale_language_name
Returns a language name
File
-
modules/
locale/ locale.module, line 829
Code
function locale_language_name($lang) {
$list =& drupal_static(__FUNCTION__);
if (!isset($list)) {
$list = locale_language_list();
}
return $lang && isset($list[$lang]) ? $list[$lang] : t('All');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.