--- image.module.orig 2007-07-15 17:18:55.000000000 -0700 +++ image.module 2007-07-15 17:19:00.000000000 -0700 @@ -353,6 +353,11 @@ */ function image_link($type, $node, $main = 0) { $links = array(); + $tlabel = array( + IMAGE_ORIGINAL => t('Original'), + IMAGE_PREVIEW => t('Preview'), + IMAGE_THUMBNAIL => t('Thumbnail'), + ); if ($type == 'node' && $node->type == 'image' && !$main) { $request = ($_GET['size']) ? $_GET['size'] : IMAGE_PREVIEW; @@ -362,16 +367,17 @@ // The thumbnail and preview images will be equal to the original images // but other sizes will not be set. if (isset($node->images[$key]) && $node->images[$key] != $node->images[$request]) { - if ($size['link'] == IMAGE_LINK_NEW) { + $title = isset($tlabel[$size['label']]) ? $tlabel[$size['label']] : $size['label']; + if ($size['link'] == IMAGE_LINK_NEW) { $links['image_size_'. $key] = array( - 'title' => $size['label'], + 'title' => $title, 'href' => "image/view/{$node->nid}/$key", 'attributes' => array('target' => '_blank'), ); } else { $links['image_size_'. $key] = array( - 'title' => $size['label'], + 'title' => $title, 'href' => 'node/'. $node->nid, 'query' => 'size='. urlencode($key) );