[Erp5-report] r20701 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 21 13:04:42 CEST 2008


Author: bartek
Date: Mon Apr 21 13:04:42 2008
New Revision: 20701

URL: http://svn.erp5.org?rev=20701&view=rev
Log:
translate status message which is shown when user tries to change relation on unmodifiable object

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml?rev=20701&r1=20700&r2=20701&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml Mon Apr 21 13:04:42 2008
@@ -95,7 +95,8 @@
 # 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 @@
                             <string>portal</string>
                             <string>N_</string>
                             <string>None</string>
+                            <string>msg</string>
                             <string>redirect_url</string>
                             <string>_getitem_</string>
                             <string>getattr</string>




More information about the Erp5-report mailing list