Commit c8f07132 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[i18n] Add missing call to _cw._ to actually translate add button's label

parent 7a5161ab41f6
......@@ -43,12 +43,13 @@ def add_links_with_custom_arguments(seq, rtype, role, extraurlparams, sub_unit_t
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment