--- 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" /> ' % imgsrc)
+ self.w(u'<img src="%s" alt="%s"/> ' % (imgsrc, imgalt))
self.w(u'<a href="javascript: {}">%s</a>' % html_escape(self.label))
self.w(u'</div>')
--- a/web/views/boxes.py Fri Jan 30 17:24:53 2009 +0100
+++ b/web/views/boxes.py Fri Jan 30 17:25:11 2009 +0100
@@ -200,7 +200,7 @@
urlgetter = self.vreg.select_component('rss_feed_url', self.req, self.rset)
url = urlgetter.feed_url()
rss = self.req.external_resource('RSS_LOGO')
- self.w(u'<a href="%s"><img src="%s" border="0" /></a>\n' % (html_escape(url), rss))
+ self.w(u'<a href="%s"><img src="%s" alt="rss"/></a>\n' % (html_escape(url), rss))
## warning("schemabox ne marche plus pour le moment")