function noderelationships_get_localized_language_list in Node Relationships 6
Get the localized language name.
1 call to noderelationships_get_localized_language_list()
- noderelationships_noderef_get_translation_page_title in ./
noderelationships.pages.inc - Get the translation page title.
File
- ./
noderelationships.inc, line 1261 - Common functions for the noderelationships module.
Code
function noderelationships_get_localized_language_list() {
if (module_exists('locale')) {
return locale_language_list();
}
$language_list = array();
foreach (language_list() as $langcode => $language) {
$language_list[$langcode] = $language->name;
}
return $language_list;
}