function _locale_string_language_list in Drupal 5
Same name and namespace in other branches
- 4 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 1328 - Admin-related functions for locale.module.
Code
function _locale_string_language_list($translation) {
// Add CSS
drupal_add_css(drupal_get_path('module', 'locale') . '/locale.css', 'module', 'all', FALSE);
$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;
}