Commit 25792737 authored by Bartek Górny's avatar Bartek Górny

translate status message which is shown when user tries to change relation on unmodifiable object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 931a18dd
...@@ -95,7 +95,8 @@ if dialog_id not in (\'\', None):\n ...@@ -95,7 +95,8 @@ if dialog_id not in (\'\', None):\n
# editing it by calling the Base_edit script with correct\n # editing it by calling the Base_edit script with correct\n
# parameters directly.\n # parameters directly.\n
if not silent_mode and not request.AUTHENTICATED_USER.has_permission(\'Modify portal content\', context) :\n if not silent_mode and not request.AUTHENTICATED_USER.has_permission(\'Modify portal content\', context) :\n
redirect_url = \'%s/%s?selection_index=%s&selection_name=%s&%s\' % (context.absolute_url(), form_id, selection_index, selection_name, \'portal_status_message=You+don\\\'t+have+the+permissions+to+edit+the+object.\')\n msg = N_(\'You don\\\'t have the permissions to edit the object.\')\n
redirect_url = \'%s/%s?selection_index=%s&selection_name=%s&%s\' % (context.absolute_url(), form_id, selection_index, selection_name, \'portal_status_message=%s\' % msg)\n
return request[\'RESPONSE\'].redirect(redirect_url)\n return request[\'RESPONSE\'].redirect(redirect_url)\n
\n \n
# Get the form\n # Get the form\n
...@@ -352,6 +353,7 @@ return result\n ...@@ -352,6 +353,7 @@ return result\n
<string>portal</string> <string>portal</string>
<string>N_</string> <string>N_</string>
<string>None</string> <string>None</string>
<string>msg</string>
<string>redirect_url</string> <string>redirect_url</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>getattr</string> <string>getattr</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