function lingotek_language_name in Lingotek Translation 6
Same name and namespace in other branches
- 7.7 lingotek.reference.inc \lingotek_language_name()
- 7.2 lingotek.reference.inc \lingotek_language_name()
- 7.3 lingotek.reference.inc \lingotek_language_name()
- 7.4 lingotek.reference.inc \lingotek_language_name()
- 7.5 lingotek.reference.inc \lingotek_language_name()
- 7.6 lingotek.reference.inc \lingotek_language_name()
1 call to lingotek_language_name()
File
- ./
lingotek.reference.inc, line 232
Code
function lingotek_language_name($language) {
$languages = language_list();
if (array_key_exists($language, $languages)) {
return $languages[$language]->name;
}
else {
$languages = _locale_get_predefined_list();
if (array_key_exists(0, $languages)) {
return $languages[$language][0];
}
else {
return $language;
}
}
}