[i18n] Add missing call to _cw._ to actually translate add button's label
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 06 Feb 2017 15:29:11 +0100
changeset 2331 dd14281dcc40
parent 2330 7a5161ab41f6
child 2332 311edbe5c745
[i18n] Add missing call to _cw._ to actually translate add button's label
views/archiveunit.py
--- a/views/archiveunit.py	Thu Feb 02 18:36:18 2017 +0100
+++ b/views/archiveunit.py	Mon Feb 06 15:29:11 2017 +0100
@@ -43,12 +43,13 @@
     and `role` but with an extra argument in url params, given through the `param_defs` list of
     3-uple defining argument's (name, value, link label).
     """
+    _ = seq._cw._
     links = []
     urlparams = extraurlparams.copy()
     for argument, value, label in sub_unit_types:
         urlparams[argument] = value
         link = add_subobject_link(seq, rtype, role, urlparams,
-                                  msg=label, klass='')
+                                  msg=_(label), klass='')
         if link:
             links.append(link)
     return links