=== modified file 'src/modules/taxonomy_blocks/taxonomy_blocks.module' --- src/modules/taxonomy_blocks/taxonomy_blocks.module 2009-07-26 11:40:06 +0000 +++ src/modules/taxonomy_blocks/taxonomy_blocks.module 2009-07-26 11:52:01 +0000 @@ -97,8 +97,15 @@ $index = $bits[1]; $vocab = taxonomy_vocabulary_load($vid); + if (module_exists("i18n")) { + $subject = tt("taxonomy:vocabulary:" . $vid . ":name", $vocab->name); + } + else { + $subject = $vocab->name; + } + $blocks = array( - 'subject' => $vocab->name . ($index ? " [$index]" : ""), + 'subject' => $subject . ($index ? " [$index]" : ""), 'content' => theme('taxonomy_blocks_block_content', $vid, $index) ); } @@ -166,7 +173,12 @@ // $path .= '/'. $term->tid; //} - $output .= l(t($term->name), $path); + if (module_exists("i18n")) { + $output .= l(tt("taxonomy:term:" . $term->tid . ":name", $term->name), $path); + } + else { + $output .= l(t($term->name), $path); + } if ($show_node_count == 1) { $output .= theme('taxonomy_blocks_node_count', $count);