You are here

function i18n_language_property in Internationalization 7

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. 6 i18n.module \i18n_language_property()

Get language properties.

Parameters

$code: Language code.

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

1 call to i18n_language_property()
i18n_taxonomy_help in i18n_taxonomy/i18n_taxonomy.module
Implements hook_help().

File

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

Code

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