[web/views/tabs] improve non graphical experince with tabs (closes #2097405)
authorAlain Leufroy <alain.leufroy@logilab.fr>
Wed, 23 Nov 2011 11:23:51 +0100
changeset 8095 5ad0f8ac7561
parent 8094 bedf36fb17f1
child 8096 e1b21db042d6
[web/views/tabs] improve non graphical experince with tabs (closes #2097405)
i18n/de.po
i18n/en.po
i18n/es.po
i18n/fr.po
web/views/tabs.py
--- a/i18n/de.po	Wed Nov 23 14:45:13 2011 +0100
+++ b/i18n/de.po	Wed Nov 23 11:23:51 2011 +0100
@@ -145,9 +145,6 @@
 msgid "(UNEXISTANT EID)"
 msgstr "(EID nicht gefunden)"
 
-msgid "(loading ...)"
-msgstr "(laden...)"
-
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -533,6 +530,9 @@
 msgid "Interval_plural"
 msgstr "Intervalle"
 
+msgid "Link:"
+msgstr ""
+
 msgid "Looked up classes"
 msgstr "gesuchte Klassen"
 
@@ -2513,9 +2513,6 @@
 msgid "follow this link for more information on this %s"
 msgstr "Folgend Sie dem Link für mehr Informationen über %s"
 
-msgid "follow this link if javascript is deactivated"
-msgstr "Folgen Sie diesem Link, falls Javascript deaktiviert ist."
-
 msgid "for_user"
 msgstr "für den Nutzer"
 
@@ -4553,12 +4550,18 @@
 msgid "you should un-inline relation %s which is supported and may be crossed "
 msgstr ""
 
+#~ msgid "(loading ...)"
+#~ msgstr "(laden...)"
+
 #~ msgid "Schema of the data model"
 #~ msgstr "Schema des Datenmodells"
 
 #~ msgid "csv entities export"
 #~ msgstr "CSV-Export von Entitäten"
 
+#~ msgid "follow this link if javascript is deactivated"
+#~ msgstr "Folgen Sie diesem Link, falls Javascript deaktiviert ist."
+
 #~ msgid "instance schema"
 #~ msgstr "Schema der Instanz"
 
--- a/i18n/en.po	Wed Nov 23 14:45:13 2011 +0100
+++ b/i18n/en.po	Wed Nov 23 11:23:51 2011 +0100
@@ -137,9 +137,6 @@
 msgid "(UNEXISTANT EID)"
 msgstr ""
 
-msgid "(loading ...)"
-msgstr ""
-
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -509,6 +506,9 @@
 msgid "Interval_plural"
 msgstr "Intervals"
 
+msgid "Link:"
+msgstr ""
+
 msgid "Looked up classes"
 msgstr ""
 
@@ -2458,9 +2458,6 @@
 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"
 
--- a/i18n/es.po	Wed Nov 23 14:45:13 2011 +0100
+++ b/i18n/es.po	Wed Nov 23 11:23:51 2011 +0100
@@ -146,9 +146,6 @@
 msgid "(UNEXISTANT EID)"
 msgstr "(EID INEXISTENTE"
 
-msgid "(loading ...)"
-msgstr "(Cargando ...)"
-
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -533,6 +530,9 @@
 msgid "Interval_plural"
 msgstr "Duraciones"
 
+msgid "Link:"
+msgstr ""
+
 msgid "Looked up classes"
 msgstr "Clases buscadas"
 
@@ -2555,9 +2555,6 @@
 msgid "follow this link for more information on this %s"
 msgstr "Seleccione esta liga para obtener mayor información sobre %s"
 
-msgid "follow this link if javascript is deactivated"
-msgstr "Seleccione esta liga si javascript esta desactivado"
-
 msgid "for_user"
 msgstr "Para el usuario"
 
@@ -4604,6 +4601,9 @@
 "usted debe  quitar la puesta en línea de la relación %s que es aceptada y "
 "puede ser cruzada"
 
+#~ msgid "(loading ...)"
+#~ msgstr "(Cargando ...)"
+
 #~ msgid "Schema of the data model"
 #~ msgstr "Esquema del modelo de datos"
 
@@ -4613,6 +4613,9 @@
 #~ msgid "csv entities export"
 #~ msgstr "Exportar entidades en csv"
 
+#~ msgid "follow this link if javascript is deactivated"
+#~ msgstr "Seleccione esta liga si javascript esta desactivado"
+
 #~ msgid "instance schema"
 #~ msgstr "Esquema de la Instancia"
 
--- a/i18n/fr.po	Wed Nov 23 14:45:13 2011 +0100
+++ b/i18n/fr.po	Wed Nov 23 11:23:51 2011 +0100
@@ -4,7 +4,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: cubicweb 2.46.0\n"
-"PO-Revision-Date: 2011-06-23 10:23+0200\n"
+"PO-Revision-Date: 2011-11-23 11:09+0100\n"
 "Last-Translator: Logilab Team <contact@logilab.fr>\n"
 "Language-Team: fr <contact@logilab.fr>\n"
 "Language: \n"
@@ -147,9 +147,6 @@
 msgid "(UNEXISTANT EID)"
 msgstr "(EID INTROUVABLE)"
 
-msgid "(loading ...)"
-msgstr "(chargement ...)"
-
 msgid "**"
 msgstr "0..n 0..n"
 
@@ -533,6 +530,9 @@
 msgid "Interval_plural"
 msgstr "Durées"
 
+msgid "Link:"
+msgstr "Lien :"
+
 msgid "Looked up classes"
 msgstr "Classes recherchées"
 
@@ -2557,9 +2557,6 @@
 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 "suivez ce lien si javascript est désactivé"
-
 msgid "for_user"
 msgstr "pour l'utilisateur"
 
@@ -4609,3 +4606,9 @@
 msgstr ""
 "vous devriez enlevé la mise en ligne de la relation %s qui est supportée et "
 "peut-être croisée"
+
+#~ msgid "(loading ...)"
+#~ msgstr "(chargement ...)"
+
+#~ msgid "follow this link if javascript is deactivated"
+#~ msgstr "suivez ce lien si javascript est désactivé"
--- a/web/views/tabs.py	Wed Nov 23 14:45:13 2011 +0100
+++ b/web/views/tabs.py	Wed Nov 23 11:23:51 2011 +0100
@@ -60,14 +60,16 @@
         w(u'<div id="lazy-%s" cubicweb:loadurl="%s">' % (
             tabid, xml_escape(self._cw.build_url('json', **urlparams))))
         if show_spinbox:
-            w(u'<img src="%s" id="%s-hole" alt="%s"/>'
-              % (xml_escape(self._cw.data_url('loading.gif')),
-                 tabid, self._cw._('(loading ...)')))
+            # Don't use ``alt`` since image is a *visual* helper for ajax
+            w(u'<img src="%s" id="%s-hole"/>'
+              % (xml_escape(self._cw.data_url('loading.gif')), tabid))
         else:
             w(u'<div id="%s-hole"></div>' % tabid)
-        w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
-          % (tabid, xml_escape(self._cw.build_url(**urlparams)), xml_escape('%s (%s)') %
-             (tabid, self._cw._('follow this link if javascript is deactivated'))))
+        w(u'<noscript><p>%s <a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
+          % (xml_escape(self._cw._('Link:')),
+             tabid,
+             xml_escape(self._cw.build_url(**urlparams)),
+             xml_escape(self._cw._(tabid))))
         w(u'</div>')
         self._prepare_bindings(tabid, reloadable)