How to get term name in right language in Drupal? Internationalization (i18n) module is used for localization.
Source code viewer
global $language; // load current user language $vocabulary = taxonomy_vocabulary_machine_name_load('vocabulary_name'); $terms = taxonomy_get_tree($vocabulary->vid, 0, 1); foreach($terms as $term) echo i18n_taxonomy_term_name($term, $language->language);Programming Language: PHP