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.
| Attachment | Size |
|---|---|
| tax_image.patch | 1.64 KB |

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