[Erp5-report] r8253 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 30 15:00:19 CEST 2006
Author: chris
Date: Fri Jun 30 15:00:13 2006
New Revision: 8253
URL: http://svn.erp5.org?rev=8253&view=rev
Log:
- added N_ translation thing again (reported by Jerome)
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=8253&r1=8252&r2=8253&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 Fri Jun 30 15:00:13 2006
@@ -73,6 +73,8 @@
from Products.Formulator.Errors import FormValidationError\n
\n
request=context.REQUEST\n
+portal = context.getPortalObject()\n
+N_ = portal.Base_translateString\n
\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
@@ -240,7 +242,7 @@
for encapsulated_editor in encapsulated_editor_list:\n
encapsulated_editor.edit(context)\n
else:\n
- message = context.getPortalObject().Base_translateString("Data+Updated.")\n
+ message = N_("Data+Updated.")\n
if not(ignore_layout) and context.getApplicableLayout() :\n
redirect_url = \'%s/%s?editable_mode=1\' % (context.REQUEST.URL1, form_id)\n
elif not selection_index:\n
@@ -314,6 +316,8 @@
<string>_getattr_</string>
<string>context</string>
<string>request</string>
+ <string>portal</string>
+ <string>N_</string>
<string>redirect_url</string>
<string>_getitem_</string>
<string>None</string>
More information about the Erp5-report
mailing list