[web navigation] previous / next icons are missing mandatory alt attribute stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 31 Jul 2012 11:19:11 +0200
branchstable
changeset 8498 bd4addfb6fd5
parent 8497 7f71e366cb5e
child 8499 75abcdc94f4a
[web navigation] previous / next icons are missing mandatory alt attribute
i18n/de.po
i18n/en.po
i18n/es.po
i18n/fr.po
web/views/navigation.py
--- a/i18n/de.po	Tue Jul 31 10:12:06 2012 +0200
+++ b/i18n/de.po	Tue Jul 31 11:19:11 2012 +0200
@@ -3283,6 +3283,9 @@
 msgid "new"
 msgstr "neu"
 
+msgid "next page"
+msgstr ""
+
 msgid "next_results"
 msgstr "weitere Ergebnisse"
 
@@ -3484,6 +3487,9 @@
 msgid "preferences"
 msgstr "Einstellungen"
 
+msgid "previous page"
+msgstr ""
+
 msgid "previous_results"
 msgstr "vorige Ergebnisse"
 
--- a/i18n/en.po	Tue Jul 31 10:12:06 2012 +0200
+++ b/i18n/en.po	Tue Jul 31 11:19:11 2012 +0200
@@ -3199,6 +3199,9 @@
 msgid "new"
 msgstr ""
 
+msgid "next page"
+msgstr ""
+
 msgid "next_results"
 msgstr "next results"
 
@@ -3399,6 +3402,9 @@
 msgid "preferences"
 msgstr ""
 
+msgid "previous page"
+msgstr ""
+
 msgid "previous_results"
 msgstr "previous results"
 
--- a/i18n/es.po	Tue Jul 31 10:12:06 2012 +0200
+++ b/i18n/es.po	Tue Jul 31 11:19:11 2012 +0200
@@ -3324,6 +3324,9 @@
 msgid "new"
 msgstr "Nuevo"
 
+msgid "next page"
+msgstr ""
+
 msgid "next_results"
 msgstr "Siguientes resultados"
 
@@ -3525,6 +3528,9 @@
 msgid "preferences"
 msgstr "Preferencias"
 
+msgid "previous page"
+msgstr ""
+
 msgid "previous_results"
 msgstr "Resultados Anteriores"
 
--- a/i18n/fr.po	Tue Jul 31 10:12:06 2012 +0200
+++ b/i18n/fr.po	Tue Jul 31 11:19:11 2012 +0200
@@ -3331,6 +3331,9 @@
 msgid "new"
 msgstr "nouveau"
 
+msgid "next page"
+msgstr "page suivante"
+
 msgid "next_results"
 msgstr "résultats suivants"
 
@@ -3534,6 +3537,9 @@
 msgid "preferences"
 msgstr "préférences"
 
+msgid "previous page"
+msgstr "page précédente"
+
 msgid "previous_results"
 msgstr "résultats précédents"
 
--- a/web/views/navigation.py	Tue Jul 31 10:12:06 2012 +0200
+++ b/web/views/navigation.py	Tue Jul 31 11:19:11 2012 +0200
@@ -364,11 +364,13 @@
 
     @property
     def prev_icon(self):
-        return '<img src="%s"/>' % xml_escape(self._cw.data_url('go_prev.png'))
+        return '<img src="%s" alt="%s" />' % (
+            xml_escape(self._cw.data_url('go_prev.png')), self._cw._('previous page'))
 
     @property
     def next_icon(self):
-        return '<img src="%s"/>' % xml_escape(self._cw.data_url('go_next.png'))
+        return '<img src="%s" alt="%s" />' % (
+            xml_escape(self._cw.data_url('go_next.png')), self._cw._('next page'))
 
     def init_rendering(self):
         adapter = self.entity.cw_adapt_to('IPrevNext')