backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 20 Jul 2011 14:10:02 +0200
changeset 7671 d911a73ac8c5
parent 7669 b96c41c6de4d (current diff)
parent 7670 6397a9051f65 (diff)
child 7672 f31f9882c90f
backport stable
i18n/de.po
i18n/en.po
i18n/es.po
i18n/fr.po
--- a/i18n/de.po	Wed Jul 20 12:31:03 2011 +0200
+++ b/i18n/de.po	Wed Jul 20 14:10:02 2011 +0200
@@ -1215,6 +1215,9 @@
 msgid "anonymous"
 msgstr "anonym"
 
+msgid "anyrsetview"
+msgstr ""
+
 msgid "april"
 msgstr "April"
 
@@ -2349,6 +2352,9 @@
 msgid "entity update"
 msgstr "Aktualisierung der Entität"
 
+msgid "entityview"
+msgstr ""
+
 msgid "error"
 msgstr ""
 
@@ -3783,6 +3789,9 @@
 msgid "startup views"
 msgstr "Start-Ansichten"
 
+msgid "startupview"
+msgstr ""
+
 msgid "state"
 msgstr "Zustand"
 
--- a/i18n/en.po	Wed Jul 20 12:31:03 2011 +0200
+++ b/i18n/en.po	Wed Jul 20 14:10:02 2011 +0200
@@ -1172,6 +1172,9 @@
 msgid "anonymous"
 msgstr ""
 
+msgid "anyrsetview"
+msgstr "rset views"
+
 msgid "april"
 msgstr ""
 
@@ -2293,6 +2296,9 @@
 msgid "entity update"
 msgstr ""
 
+msgid "entityview"
+msgstr "entity views"
+
 msgid "error"
 msgstr ""
 
@@ -3683,6 +3689,9 @@
 msgid "startup views"
 msgstr ""
 
+msgid "startupview"
+msgstr "startup views"
+
 msgid "state"
 msgstr ""
 
--- a/i18n/es.po	Wed Jul 20 12:31:03 2011 +0200
+++ b/i18n/es.po	Wed Jul 20 14:10:02 2011 +0200
@@ -1224,6 +1224,9 @@
 msgid "anonymous"
 msgstr "anónimo"
 
+msgid "anyrsetview"
+msgstr ""
+
 msgid "april"
 msgstr "Abril"
 
@@ -2391,6 +2394,9 @@
 msgid "entity update"
 msgstr "Actualización de la Entidad"
 
+msgid "entityview"
+msgstr ""
+
 msgid "error"
 msgstr "error"
 
@@ -3833,6 +3839,9 @@
 msgid "startup views"
 msgstr "Vistas de inicio"
 
+msgid "startupview"
+msgstr ""
+
 msgid "state"
 msgstr "Estado"
 
--- a/i18n/fr.po	Wed Jul 20 12:31:03 2011 +0200
+++ b/i18n/fr.po	Wed Jul 20 14:10:02 2011 +0200
@@ -1222,6 +1222,9 @@
 msgid "anonymous"
 msgstr "anonyme"
 
+msgid "anyrsetview"
+msgstr "vues \"tous les rset\""
+
 msgid "april"
 msgstr "avril"
 
@@ -2388,6 +2391,9 @@
 msgid "entity update"
 msgstr "mise à jour d'entité"
 
+msgid "entityview"
+msgstr "vues d'entité"
+
 msgid "error"
 msgstr "erreur"
 
@@ -3833,6 +3839,9 @@
 msgid "startup views"
 msgstr "vues de départ"
 
+msgid "startupview"
+msgstr "vues de départ"
+
 msgid "state"
 msgstr "état"
 
--- a/view.py	Wed Jul 20 12:31:03 2011 +0200
+++ b/view.py	Wed Jul 20 14:10:02 2011 +0200
@@ -371,7 +371,7 @@
 class EntityView(View):
     """base class for views applying on an entity (i.e. uniform result set)"""
     __select__ = non_final_entity()
-    category = 'entityview'
+    category = _('entityview')
 
     def call(self, **kwargs):
         if self.cw_rset is None:
@@ -392,7 +392,7 @@
     """
     __select__ = none_rset()
 
-    category = 'startupview'
+    category = _('startupview')
 
     def html_headers(self):
         """return a list of html headers (eg something to be inserted between
@@ -436,7 +436,7 @@
     """base class for views applying on any non empty result sets"""
     __select__ = nonempty_rset()
 
-    category = 'anyrsetview'
+    category = _('anyrsetview')
 
     def columns_labels(self, mainindex=0, tr=True):
         if tr:
--- a/web/views/boxes.py	Wed Jul 20 12:31:03 2011 +0200
+++ b/web/views/boxes.py	Wed Jul 20 14:10:02 2011 +0200
@@ -185,7 +185,7 @@
 
     def render_body(self, w):
         for category, views in box.sort_by_category(self.views):
-            menu = htmlwidgets.BoxMenu(category)
+            menu = htmlwidgets.BoxMenu(self._cw._(category))
             for view in views:
                 menu.append(self.action_link(view))
             self.append(menu)
@@ -208,6 +208,7 @@
             raise component.EmptyComponent()
         self.items = []
 
+
 class RsetBox(component.CtxComponent):
     """helper view class to display an rset in a sidebox"""
     __select__ = nonempty_rset() & match_kwargs('title', 'vid')