I'm looking for a working method to get the translated term name by tid
.
The following code returns the original term name but not the translation.
global $language;
$lang_name = $language->language; // en
$term_id = 788;
$term = i18n_taxonomy_term_get_translation($term_id, $lang_name);
Most examples provided in "how to get the translated taxonomy term programmatically?" seem not work for Drupal 7.