From 25792737d12b55d6a82461b3743d14432f14f5a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Mon, 21 Apr 2008 11:04:42 +0000
Subject: [PATCH] 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
---
 .../SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
index 11cdfdb0ee..2a4e732c70 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
@@ -95,7 +95,8 @@ if dialog_id not in (\'\', None):\n
 # editing it by calling the Base_edit script with correct\n
 # parameters directly.\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
 \n
 # Get the form\n
@@ -352,6 +353,7 @@ return result\n
                             <string>portal</string>
                             <string>N_</string>
                             <string>None</string>
+                            <string>msg</string>
                             <string>redirect_url</string>
                             <string>_getitem_</string>
                             <string>getattr</string>
-- 
2.30.9