[Erp5-report] r18015 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 5 10:06:06 CET 2007
Author: romain
Date: Wed Dec 5 10:06:06 2007
New Revision: 18015
URL: http://svn.erp5.org?rev=18015&view=rev
Log:
Translate status message.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_paste.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_paste.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_paste.xml?rev=18015&r1=18014&r2=18015&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_paste.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_paste.xml Wed Dec 5 10:06:06 2007
@@ -70,6 +70,8 @@
<key> <string>_body</string> </key>
<value> <string>REQUEST=context.REQUEST\n
error_message = \'\'\n
+N_ = context.Base_translateString\n
+\n
if context.cb_dataValid:\n
# We first look if the content of objects to paste is allowed\n
# inside this folder\n
@@ -77,23 +79,25 @@
try:\n
portal_type_list = [x.getPortalType() for x in object_list]\n
except AttributeError:\n
- error_message = \'Sorry+you+can+not+paste+theses+Items+here\'\n
+ error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n
else:\n
allowed_type_list = [x.id for x in context.allowedContentTypes()]\n
for portal_type in portal_type_list:\n
if portal_type not in allowed_type_list:\n
- error_message = \'Sorry+you+can+not+paste+theses+Items+here\'\n
+ error_message = N_(\'Sorry+you+can+not+paste+theses+Items+here\')\n
if context.cb_dataValid and error_message==\'\':\n
try:\n
new_item_list = context.manage_pasteObjects(REQUEST[\'__cp\'])\n
except KeyError:\n
- return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=Nothing+To+Paste.\')\n
+ msg = N_(\'Nothing+To+Paste.\')\n
+ return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n
else:\n
new_id_list = [i[\'new_id\'] for i in new_item_list]\n
for my_id in new_id_list:\n
context[my_id].flushActivity(invoke=0, method_id=\'immediateReindexObject\')\n
context[my_id].recursiveImmediateReindexObject()\n
- return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=Item(s)+Pasted.\')\n
+ msg = N_(\'Item(s)+Pasted.\')\n
+ return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n
elif context.cb_dataValid and error_message!=\'\':\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % error_message)\n
else:\n
@@ -145,6 +149,7 @@
<string>context</string>
<string>REQUEST</string>
<string>error_message</string>
+ <string>N_</string>
<string>object_list</string>
<string>append</string>
<string>$append0</string>
@@ -157,6 +162,7 @@
<string>_getitem_</string>
<string>new_item_list</string>
<string>KeyError</string>
+ <string>msg</string>
<string>i</string>
<string>new_id_list</string>
<string>my_id</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=18015&r1=18014&r2=18015&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Wed Dec 5 10:06:06 2007
@@ -1,1 +1,1 @@
-622
+623
More information about the Erp5-report
mailing list