function _hosting_language_name in Hostmaster (Aegir) 6
6 calls to _hosting_language_name()
- hosting_get_profile_languages in modules/
hosting/ package/ hosting_package.module - hosting_site_list_form in modules/
hosting/ site/ hosting_site.module - Create a form for building a list of sites. @TODO Add ability to filter by additional fields
- hosting_site_view in modules/
hosting/ site/ hosting_site.nodeapi.inc - Implementation of hook_view().
- views_handler_field_hosting_language::render in modules/
hosting/ site/ views_handler_field_hosting_language.inc - _hosting_language_names in modules/
hosting/ package/ hosting_package.module - Return names of the languages available
1 string reference to '_hosting_language_name'
- hosting_site_form in modules/
hosting/ site/ hosting_site.form.inc - Implements hook_form().
File
- modules/
hosting/ package/ hosting_package.module, line 347
Code
function _hosting_language_name($language) {
include_once './includes/locale.inc';
$locales = _locale_get_predefined_list();
return $locales[$language][0] . (isset($locales[$language][1]) ? ' ' . t('(@language)', array(
'@language' => $locales[$language][1],
)) : '');
}