--- image_gallery.pages.inc.orig 2010-08-01 01:05:04.000000000 -0500 +++ image_gallery.pages.inc 2010-08-01 01:23:15.000000000 -0500 @@ -61,6 +61,12 @@ $images[] = node_load(array('nid' => $node->nid)); } + // Check to see if i18n is loaded and being used: + $use_i18n = FALSE; + if (module_exists('i18ntaxonomy') && i18ntaxonomy_vocabulary($vid)) { + $use_i18n = TRUE; + } + $gallery = taxonomy_get_term($tid); $parents = taxonomy_get_parents($tid); @@ -68,6 +74,10 @@ $breadcrumb[] = l(t('Home'), NULL); $breadcrumb[] = l(t('Image galleries'), 'image'); foreach ($parents as $parent) { + if ($use_i18n) { + $parent->name = i18nstrings("taxonomy:term:$parent->tid:name", $parent->name); + } + // Add parents to breadcrumb navigation $breadcrumb[] = l($parent->name, 'image/tid/'. $parent->tid); }