You are here

function _hosting_language_name in Hosting 6.2

Same name and namespace in other branches
  1. 5 package/hosting_package.module \_hosting_language_name()
  2. 7.4 package/hosting_package.module \_hosting_language_name()
  3. 7.3 package/hosting_package.module \_hosting_language_name()
5 calls to _hosting_language_name()
hosting_get_profile_languages in package/hosting_package.module
hosting_site_view in site/hosting_site.nodeapi.inc
Implementation of hook_view().
views_handler_field_hosting_language::render in site/views/views_handler_field_hosting_language.inc
_hosting_language_names in package/hosting_package.module
Return names of the languages available
_hosting_package_instances_load_languages in package/hosting_package.instance.inc
Get the languages associated with an instance of a package.
1 string reference to '_hosting_language_name'
hosting_site_form in site/hosting_site.form.inc
Implements hook_form().

File

package/hosting_package.module, line 304

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],
  )) : '');
}