You are here

function _locale_translate_language_list in Drupal 6

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

List languages in search result table

Related topics

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

File

includes/locale.inc, line 2268
Administration functions for locale.module.

Code

function _locale_translate_language_list($translation, $limit_language) {

  // Add CSS
  drupal_add_css(drupal_get_path('module', 'locale') . '/locale.css', 'module', 'all', FALSE);
  $languages = language_list();
  unset($languages['en']);
  $output = '';
  foreach ($languages as $langcode => $language) {
    if (!$limit_language || $limit_language == $langcode) {
      $output .= !empty($translation[$langcode]) ? $langcode . ' ' : "<em class=\"locale-untranslated\">{$langcode}</em> ";
    }
  }
  return $output;
}