You are here

function i18n_taxonomy_taxonomy_term_label in Internationalization 7

Providing a hook_entity_info() 'label callback' to ensure modules that use entity_label() get the correct localized taxonomy term.

1 string reference to 'i18n_taxonomy_taxonomy_term_label'
i18n_taxonomy_entity_info_alter in i18n_taxonomy/i18n_taxonomy.module
Implements hook_entity_info_alter().

File

i18n_taxonomy/i18n_taxonomy.module, line 1278
i18n taxonomy module

Code

function i18n_taxonomy_taxonomy_term_label($term, $entity_type) {
  return i18n_taxonomy_term_name($term, i18n_language_interface()->language);
}