web/facet.py
changeset 536 781cd9fccbaa
parent 496 e25a3c2f5393
child 692 800592b8d39b
child 949 1fba39d6ee70
--- a/web/facet.py	Fri Jan 30 17:24:53 2009 +0100
+++ b/web/facet.py	Fri Jan 30 17:25:11 2009 +0100
@@ -560,12 +560,14 @@
         if self.selected:
             cssclass = ' facetValueSelected'
             imgsrc = self.req.datadir_url + self.selected_img
+            imgalt = self.req._('selected')
         else:
             cssclass = ''
             imgsrc = self.req.datadir_url + self.unselected_img
+            imgalt = self.req._('not selected')
         self.w(u'<div class="facetValue facetCheckBox%s" cubicweb:value="%s">\n'
                % (cssclass, html_escape(unicode(self.value))))
-        self.w(u'<img src="%s" />&nbsp;' % imgsrc)
+        self.w(u'<img src="%s" alt="%s"/>&nbsp;' % (imgsrc, imgalt))
         self.w(u'<a href="javascript: {}">%s</a>' % html_escape(self.label))
         self.w(u'</div>')