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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
669307c3
Commit
669307c3
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
efda0ab2
Changes
1
Show 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 @
669307c3
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