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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
5b782f0a
Commit
5b782f0a
authored
Dec 24, 2020
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Translate messages
parent
8de189a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_changeUserPassword.py
...ins/erp5_web_renderjs_ui/WebSection_changeUserPassword.py
+3
-2
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_changeUserPassword.py
View file @
5b782f0a
...
...
@@ -4,6 +4,7 @@
REQUEST
=
context
.
REQUEST
response
=
REQUEST
.
RESPONSE
portal
=
context
.
getPortalObject
()
translateString
=
portal
.
Base_translateString
password_confirm
,
password
=
REQUEST
[
'password_confirm'
],
REQUEST
[
'password'
]
new_url
=
""
.
join
([
x
for
x
in
REQUEST
[
"HTTP_REFERER"
].
split
(
"&"
)
...
...
@@ -13,7 +14,7 @@ if password_confirm != password:
return
response
.
redirect
(
"%s&portal_status_message=%s"
%
(
new_url
,
"New password does not match confirmation"
)
translateString
(
"Passwords do not match."
)
)
)
password_key
=
REQUEST
[
'password_key'
]
...
...
@@ -22,7 +23,7 @@ assert password_key
validation_message_list
=
portal
.
portal_password
.
analyzePassword
(
password
,
password_key
)
if
validation_message_list
:
message
=
' '
.
join
([
str
(
x
)
for
x
in
validation_message_list
])
message
=
' '
.
join
([
translateString
(
x
)
for
x
in
validation_message_list
])
return
response
.
redirect
(
"%s&portal_status_message=%s"
%
(
new_url
,
...
...
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