Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
f2ff1020
Commit
f2ff1020
authored
Mar 19, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deferred_style: translate email subject
by evaluating it in a translationContext
parent
a0062484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.py
...ins/erp5_deferred_style_core/Base_computeReportSection.py
+3
-2
No files found.
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.py
View file @
f2ff1020
portal
=
context
.
getPortalObject
()
N_
=
portal
.
Base_translateString
form
=
context
.
restrictedTraverse
(
form
)
request
=
container
.
REQUEST
...
...
@@ -16,6 +15,8 @@ with portal.Localizer.translationContext(localizer_language):
else
:
raise
ValueError
,
'form meta_type (%r) unknown'
%
(
form
.
meta_type
,)
report_title
=
portal
.
Base_translateString
((
form
.
getProperty
(
'title'
)))
# Rebuild request_other as report section can have modify request content
request_other
=
portal
.
ERP5Site_filterRequestForDeferredStyle
(
request
)
...
...
@@ -45,7 +46,7 @@ activity_context.activate(activity='SQLQueue', after_tag=tag, priority=priority)
active_process_url
=
active_process
.
getRelativeUrl
(),
skin_name
=
skin_name
,
localizer_language
=
localizer_language
,
title
=
N_
(
form
.
getProperty
(
'title'
))
,
title
=
report_title
,
request_other
=
request_other
,
form_path
=
form
.
getPhysicalPath
(),
user_name
=
user_name
,
...
...
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