--- sites/all/modules/site_map/site_map.module 2009-07-17 00:01:23.000000000 +0200
+++ sites/all/modules/site_map/site_map.module.new.1 2009-07-17 00:00:55.000000000 +0200
@@ -340,7 +340,13 @@ function _site_map_taxonomy_tree($vid, $
$title = l($name, 'forum');
}
else {
- $title = $name ? check_plain($name) : '';
+ if (module_exists('i18ntaxonomy')) {
+ $vocabname=tt("taxonomy:vocabulary:$vid:name", $name);
+ }
+ else {
+ $vocabname=$name;
+ }
+ $title = $vocabname ? check_plain($vocabname) : '';
}
$title .= (module_exists('commentrss') ? ' '. theme('site_map_feed_icon', url("crss/vocab/$vid"), 'comment') : '');
@@ -375,16 +381,23 @@ function _site_map_taxonomy_tree($vid, $
// Display the $term.
$output .= '
';
$term->count = taxonomy_term_count_nodes($term->tid);
+ if (module_exists('i18ntaxonomy')) {
+ $termname=tt("taxonomy:term:$term->tid:name", $term->name);
+ }
+ else {
+ $termname=$term->name;
+ }
+
if ($term->count) {
if ($cat_depth < 0) {
- $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('title' => $term->description)));
+ $output .= l($termname, taxonomy_term_path($term), array('attributes' => array('title' => $term->description)));
}
else {
- $output .= l($term->name, "taxonomy/term/$term->tid/$cat_depth", array('attributes' => array('title' => $term->description)));
+ $output .= l($termname, "taxonomy/term/$term->tid/$cat_depth", array('attributes' => array('title' => $term->description)));
}
}
else {
- $output .= check_plain($term->name);
+ $output .= check_plain($termname);
}
if (variable_get('site_map_show_count', 1)) {
$output .= " ($term->count)";