Translate image alt attribute as well as title attribute

mvc - May 26, 2009 - 20:53
Project:Taxonomy Image
Version:6.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

taxonomy_image_display() correctly translates the image title attribute, which is either the taxonomy term's description or its name. However, it does not translate the image alt attribute, which is always the term's name. The attached patch fixes this problem.

AttachmentSize
tax_image.patch1.64 KB

#1

mvc - May 26, 2009 - 20:58

Here's a cleaner patch which removes some redundant code I'd added.

AttachmentSize
tax_image.patch 2.24 KB
 
 

Drupal is a registered trademark of Dries Buytaert.