You are here

function globallink_interface_locale_languages in GlobalLink Connect for Drupal 7.6

Gets status for each language to be translated into.

Parameters

string $lid: The interface LID.

Return value

string String of languages and their respective statuses.

File

globallink_interface/globallink_interface.inc, line 175

Code

function globallink_interface_locale_languages($lid) {
  $mapped_locales = globallink_get_mapped_locales_with_drupal_desc(TRUE);
  $translation_status = '';
  foreach ($mapped_locales as $code => $locale) {
    $result = globallink_interface_get_submission_status($lid, $code);
    if ($result) {
      $translation_status .= $locale . ' - ' . $result['status'] . '<br />';
    }
  }
  return $translation_status;
}