i18ntaxonomy_localize_terms($terms, $fields = array('name'))
contributions/i18n/i18ntaxonomy/i18ntaxonomy.module, line 632
<?php
function i18ntaxonomy_localize_terms($terms, $fields = array('name')) {
$localize = i18ntaxonomy_vocabulary(NULL, I18N_TAXONOMY_LOCALIZE);
foreach ($terms as $index => $term) {
if (in_array($term->vid, $localize)) {
foreach ($fields as $property) {
$terms[$index]->$property = tt("taxonomy:term:$term->tid:$property", $term->name);
}
}
}
return $terms;
}
?>