You are here

function _hosting_language_name in Hosting 5

Same name and namespace in other branches
  1. 6.2 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()
6 calls to _hosting_language_name()
hosting_get_profile_languages in package/hosting_package.module
hosting_site_form in site/hosting_site.module
Implementation of hook_form
hosting_site_list in site/hosting_site.module
Display a list of created sites on the front page @TODO Add ability to filter by additional fields @TODO Add paging.
hosting_site_view in site/hosting_site.module
_hosting_language_names in package/hosting_package.module
Return names of the languages available

... See full list

File

package/hosting_package.module, line 261

Code

function _hosting_language_name($language) {
  include_once './includes/locale.inc';
  $locales = _locale_get_iso639_list();
  return $locales[$language][0] . (isset($locales[$language][1]) ? ' ' . t('(@language)', array(
    '@language' => $locales[$language][1],
  )) : '');
}