function tmgmt_language_combination_language_label in Translation Management Tool 7
Returns the label of a language.
@todo Remove this once the core language label function is fixed.
Parameters
$language: A language in ISO format.
Return value
string The label of the language or an empty string if the language or its label are not defined.
1 call to tmgmt_language_combination_language_label()
- tmgmt_language_combination_field_formatter_view in translators/
tmgmt_local/ skills/ tmgmt_language_combination.module - Implements hook_field_formatter_view().
File
- translators/
tmgmt_local/ skills/ tmgmt_language_combination.module, line 246
Code
function tmgmt_language_combination_language_label($language) {
$languages = tmgmt_language_combination_languages_predefined_list();
if (!empty($languages[$language])) {
return $languages[$language];
}
return '';
}