You are here

function _locale_string_language_list in Drupal 4

Same name and namespace in other branches
  1. 5 includes/locale.inc \_locale_string_language_list()

List languages in search result table

1 call to _locale_string_language_list()
_locale_string_seek in includes/locale.inc
Perform a string search and display results in a table

File

includes/locale.inc, line 1225
Admin-related functions for locale.module.

Code

function _locale_string_language_list($translation) {
  $languages = locale_supported_languages(FALSE, TRUE);
  unset($languages['name']['en']);
  $output = '';
  foreach ($languages['name'] as $key => $value) {
    if (isset($translation[$key])) {
      $output .= $translation[$key] != '' ? $key . ' ' : "<em class=\"locale-untranslated\">{$key}</em> ";
    }
  }
  return $output;
}