You are here

function locale_language_name in Drupal 7

Same name and namespace in other branches
  1. 6 modules/locale/locale.module \locale_language_name()

Returns a language name

File

modules/locale/locale.module, line 827
Add language handling functionality and enables the translation of the user interface to languages other than English.

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');
}