Index: taxonomy_blocks.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_blocks/taxonomy_blocks.module,v retrieving revision 1.5 diff -u -r1.5 taxonomy_blocks.module --- taxonomy_blocks.module 18 Dec 2009 17:34:25 -0000 1.5 +++ taxonomy_blocks.module 9 Jul 2010 10:45:59 -0000 @@ -90,12 +90,19 @@ elseif ($op == 'view') { $bits = explode('-', $delta); $vid = $bits[0]; - $index = $bits[1]; + $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]" : ""), - 'content' => theme('taxonomy_blocks_block_content', $vid, $index) + 'subject' => $subject . ($index ? " [$index]" : ""), + 'content' => theme('taxonomy_blocks_block_content', $vid, $index) ); } return $blocks; @@ -103,10 +110,10 @@ /** * Render a list of terms inside a block. - * + * * @param $vid * ID of the rendered vocabulary. - * + * * @return HTML unordered list of terms. */ function theme_taxonomy_blocks_block_content($vid, $index) { @@ -157,8 +164,15 @@ $output .= '