Commit fa4f3457 authored by Christophe Dumez's avatar Christophe Dumez

- added N_ translation thing again (reported by Jerome)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74f7e4a1
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
from Products.Formulator.Errors import FormValidationError\n from Products.Formulator.Errors import FormValidationError\n
\n \n
request=context.REQUEST\n request=context.REQUEST\n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n \n
# Prevent users who don\'t have rights to edit the object from\n # Prevent users who don\'t have rights to edit the object from\n
# editing it by calling the Base_edit script with correct \n # editing it by calling the Base_edit script with correct \n
...@@ -240,7 +242,7 @@ context.edit(REQUEST=request,**kw)\n ...@@ -240,7 +242,7 @@ context.edit(REQUEST=request,**kw)\n
for encapsulated_editor in encapsulated_editor_list:\n for encapsulated_editor in encapsulated_editor_list:\n
encapsulated_editor.edit(context)\n encapsulated_editor.edit(context)\n
else:\n else:\n
message = context.getPortalObject().Base_translateString("Data+Updated.")\n message = N_("Data+Updated.")\n
if not(ignore_layout) and context.getApplicableLayout() :\n if not(ignore_layout) and context.getApplicableLayout() :\n
redirect_url = \'%s/%s?editable_mode=1\' % (context.REQUEST.URL1, form_id)\n redirect_url = \'%s/%s?editable_mode=1\' % (context.REQUEST.URL1, form_id)\n
elif not selection_index:\n elif not selection_index:\n
...@@ -314,6 +316,8 @@ return request[\'RESPONSE\'].redirect(redirect_url)\n ...@@ -314,6 +316,8 @@ return request[\'RESPONSE\'].redirect(redirect_url)\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>request</string>
<string>portal</string>
<string>N_</string>
<string>redirect_url</string> <string>redirect_url</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>None</string> <string>None</string>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment