You are here

1 December 2012

This snippet shows you how to Localize taxonomy term in Drupal 7.

Source code viewer
  1. $term = taxonomy_term_load(arg(1));
  2. if (module_exists('i18n_taxonomy')) {
  3. module_load_include('inc', 'i18n', 'i18n_taxonomy.pages');
  4. $term = i18n_taxonomy_localize_terms($term);
  5. }
  6. echo $term->name;
Programming Language: PHP