tabs/lazy views: provide a link for the no js user agents (lynx, blinds, google) #693670 stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 26 Feb 2010 15:27:55 +0100
branchstable
changeset 4727 946a9db5405d
parent 4725 5a81f6bbcb9e
child 4728 185b866e22c6
tabs/lazy views: provide a link for the no js user agents (lynx, blinds, google) #693670
i18n/en.po
i18n/es.po
i18n/fr.po
web/views/tabs.py
--- a/i18n/en.po	Fri Feb 26 13:56:06 2010 +0100
+++ b/i18n/en.po	Fri Feb 26 15:27:55 2010 +0100
@@ -125,6 +125,9 @@
 msgid "(UNEXISTANT EID)"
 msgstr ""
 
+msgid "(loading ...)"
+msgstr ""
+
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -2238,6 +2241,9 @@
 msgid "follow this link for more information on this %s"
 msgstr ""
 
+msgid "follow this link if javascript is deactivated"
+msgstr ""
+
 msgid "for_user"
 msgstr "for user"
 
@@ -2642,9 +2648,6 @@
 msgid "list"
 msgstr ""
 
-msgid "loading"
-msgstr ""
-
 msgid "log in"
 msgstr ""
 
--- a/i18n/es.po	Fri Feb 26 13:56:06 2010 +0100
+++ b/i18n/es.po	Fri Feb 26 15:27:55 2010 +0100
@@ -130,6 +130,9 @@
 msgid "(UNEXISTANT EID)"
 msgstr ""
 
+msgid "(loading ...)"
+msgstr "(Cargando ...)"
+
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -2288,6 +2291,9 @@
 msgid "follow this link for more information on this %s"
 msgstr ""
 
+msgid "follow this link if javascript is deactivated"
+msgstr ""
+
 msgid "for_user"
 msgstr "Para el usuario"
 
@@ -2710,9 +2716,6 @@
 msgid "list"
 msgstr "Lista"
 
-msgid "loading"
-msgstr "Cargando"
-
 msgid "log in"
 msgstr "Identificarse"
 
@@ -4254,6 +4257,9 @@
 #~ msgid "link to each item in"
 #~ msgstr "ligar hacia cada elemento en"
 
+#~ msgid "loading"
+#~ msgstr "Cargando"
+
 #~ msgid "nothing to edit"
 #~ msgstr "nada que editar"
 
--- a/i18n/fr.po	Fri Feb 26 13:56:06 2010 +0100
+++ b/i18n/fr.po	Fri Feb 26 15:27:55 2010 +0100
@@ -130,6 +130,9 @@
 msgid "(UNEXISTANT EID)"
 msgstr "(EID INTROUVABLE)"
 
+msgid "(loading ...)"
+msgstr "(chargement ...)"
+
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -2310,6 +2313,9 @@
 msgid "follow this link for more information on this %s"
 msgstr "suivez ce lien pour plus d'information sur ce %s"
 
+msgid "follow this link if javascript is deactivated"
+msgstr ""
+
 msgid "for_user"
 msgstr "pour l'utilisateur"
 
@@ -2736,9 +2742,6 @@
 msgid "list"
 msgstr "liste"
 
-msgid "loading"
-msgstr "chargement"
-
 msgid "log in"
 msgstr "s'identifier"
 
--- a/web/views/tabs.py	Fri Feb 26 13:56:06 2010 +0100
+++ b/web/views/tabs.py	Fri Feb 26 15:27:55 2010 +0100
@@ -48,7 +48,10 @@
             tabid or vid, xml_escape(self._cw.build_url('json', **urlparams))))
         if show_spinbox:
             w(u'<img src="data/loading.gif" id="%s-hole" alt="%s"/>'
-              % (tabid or vid, self._cw._('loading')))
+              % (tabid or vid, self._cw._('(loading ...)')))
+        w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
+          % (tabid or vid, xml_escape(self._cw.build_url(**urlparams)), xml_escape('%s (%s)') %
+             (tabid or vid, self._cw._('follow this link if javascript is deactivated'))))
         w(u'</div>')
         self._prepare_bindings(tabid or vid, reloadable)