1 bootstrap.inc | language_name($langcode) |
Produced the printed name for a language for display.
Parameters
$langcode: The language code.
Return value
The printed name of the language.:
File
- core/
includes/ bootstrap.inc, line 3686 - Functions that need to be loaded on every Backdrop request.
Code
function language_name($langcode) {
if ($langcode == LANGUAGE_NONE) {
return t('None');
}
if ($language = language_load($langcode)) {
return $language->name;
}
return t('Unknown (@langcode)', array('@langcode' => $langcode));
}