You are here

function i18n_taxonomy_term_name in Internationalization 7

Get localized term name unfiltered.

8 calls to i18n_taxonomy_term_name()
i18n_forum_node_view in i18n_forum/i18n_forum.module
Implements hook_node_view().
i18n_forum_preprocess_forums in i18n_forum/i18n_forum.module
Translate forum page.
i18n_taxonomy_allowed_values in i18n_taxonomy/i18n_taxonomy.module
Returns the set of valid terms for a taxonomy field.
i18n_taxonomy_field_formatter_view in i18n_taxonomy/i18n_taxonomy.module
Implements hook_field_formatter_view().
i18n_taxonomy_form_all_localize in i18n_taxonomy/i18n_taxonomy.module
Localize a taxonomy_form_all() kind of control

... See full list

1 string reference to 'i18n_taxonomy_term_name'
i18n_taxonomy_menu_alter in i18n_taxonomy/i18n_taxonomy.module
Implements hook_menu_alter().

File

i18n_taxonomy/i18n_taxonomy.module, line 473
i18n taxonomy module

Code

function i18n_taxonomy_term_name($term, $langcode = NULL) {
  $key = i18n_object_info('taxonomy_term', 'key');
  return i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE) ? i18n_string(array(
    'taxonomy',
    'term',
    $term->{$key},
    'name',
  ), $term->name, array(
    'langcode' => $langcode,
    'sanitize' => FALSE,
  )) : $term->name;
}