Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
de0a9cca
Commit
de0a9cca
authored
Feb 19, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: translate user messages
parent
be5a4588
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_activeLogin.xml
...tem/portal_skins/erp5_credential/ERP5Site_activeLogin.xml
+7
-5
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_activeLogin.xml
View file @
de0a9cca
...
...
@@ -50,19 +50,21 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
from Products.ERP5Type.Message import translateString\n
portal = context.getPortalObject()\n
\n
assert key\n
mail_message = portal.portal_catalog.getResultValue(portal_type="Mail Message", reference=key)\n
\n
credential_request = mail_message.getFollowUpValue()\n
if credential_request.getValidationState() in (\'submitted\', \'accepted\'):\n
message =
"Your account is already active."
\n
message =
translateString("Your account is already active.")
\n
else:\n
credential_request.submit(comment=
\'Create by subscription form\'
)\n
credential_request.submit(comment=
translateString(\'Created by subscription form\')
)\n
mail_message.deliver()\n
message =
"Your account is being activated. You will receive an e-mail when activation is complete."
\n
message =
translateString("Your account is being activated. You will receive an e-mail when activation is complete.")
\n
\n
return
context.Base_redirect("login_form?portal_status_message=%s" % message
)\n
return
portal.Base_redirect("login_form", keep_items=dict(portal_status_message=message)
)\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_credential/bt/revision
View file @
de0a9cca
418
\ No newline at end of file
419
\ No newline at end of file
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