You are here

function tmgmt_language_label in Translation Management Tool 7

Returns the label of a language.

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_label()
TMGMTDefaultTranslatorUIController::pluginSettingsForm in plugin/tmgmt.ui.translator.inc
Form callback for the plugin settings form.

File

./tmgmt.module, line 314
Main module file for the Translation Management module.

Code

function tmgmt_language_label($language) {
  $languages = entity_metadata_language_list();
  if (!empty($languages[$language])) {
    return $languages[$language];
  }
  return '';
}