Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
dd14281dcc40
Commit
c8f07132
authored
Feb 06, 2017
by
Sylvain Thénault
Browse files
[i18n] Add missing call to _cw._ to actually translate add button's label
parent
7a5161ab41f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/archiveunit.py
View file @
dd14281d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment