Récupère les termes localisés d'une taxonomie
function utils_get_localized_terms_from_vocabulary($vocabulary_machine_name) {
$terms = array();
$vocabulary = taxonomy_vocabulary_machine_name_load($vocabulary_machine_name);
if ($vocabulary) {
$terms = taxonomy_term_load_multiple(array(), array('vid' => $vocabulary->vid));
if (!empty($terms)) {
$terms = i18n_taxonomy_localize_terms($terms);
}
}
return $terms;
}