[views] Translate simplified facet
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 28 Feb 2017 22:38:52 +0100
changeset 2442 50331aa0472a
parent 2441 cad10c8a91fb
child 2443 75bd29a15521
[views] Translate simplified facet so one see yes/no instead of True/False.
cubicweb_seda/views/facets.py
--- a/cubicweb_seda/views/facets.py	Tue Feb 28 22:37:42 2017 +0100
+++ b/cubicweb_seda/views/facets.py	Tue Feb 28 22:38:52 2017 +0100
@@ -23,3 +23,7 @@
     __regid__ = 'seda.profile.simplified'
     __select__ = AttributeFacet.__select__ & is_instance('SEDAArchiveTransfer')
     rtype = 'simplified_profile'
+
+    def vocabulary(self):
+        __ = self._cw.__
+        return [(__('yes'), True), (__('no'), False)]