You are here

function i18n_language_property in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_language_property()
  2. 5 i18n.module \i18n_language_property()
  3. 5.2 i18n.module \i18n_language_property()
  4. 7 i18n.module \i18n_language_property()

Get language properties.

Parameters

$code: Language code.

$property: It may be 'name', 'native', 'ltr'...

2 calls to i18n_language_property()
i18ntaxonomy_form_alter in i18ntaxonomy/i18ntaxonomy.module
Implementation of hook_form_alter().
i18ntaxonomy_help in i18ntaxonomy/i18ntaxonomy.module
Implementation of hook_help().

File

./i18n.module, line 335
Internationalization (i18n) module.

Code

function i18n_language_property($code, $property) {
  $languages = language_list();
  return isset($languages[$code]->{$property}) ? $languages[$code]->{$property} : NULL;
}