[Erp5-report] r23251 - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/erp5_crm/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 28 17:48:01 CEST 2008
Author: yusei
Date: Thu Aug 28 17:47:53 2008
New Revision: 23251
URL: http://svn.erp5.org?rev=23251&view=rev
Log:
2008-08-28 yusei
* Use Base_translateString or translateString instead of N_ for translation message.
Modified:
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml
erp5/trunk/bt5/erp5_crm/bt/change_log
erp5/trunk/bt5/erp5_crm/bt/revision
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml?rev=23251&r1=23250&r2=23251&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_addEvent.xml Thu Aug 28 17:47:53 2008
@@ -113,8 +113,7 @@
module = context.getDefaultModule(portal_type=portal_type)\n
event = module.newContent(**event_kw)\n
\n
-N_ = context.Base_translateString\n
-message = N_(\'New Event Created\')\n
+message = context.Base_translateString(\'New Event Created\')\n
\n
event.Base_redirect(keep_items={\'portal_status_message\': message})\n
</string> </value>
@@ -196,7 +195,6 @@
<string>module</string>
<string>_apply_</string>
<string>event</string>
- <string>N_</string>
<string>message</string>
</tuple>
</value>
Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml?rev=23251&r1=23250&r2=23251&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml Thu Aug 28 17:47:53 2008
@@ -67,7 +67,7 @@
<key> <string>_body</string> </key>
<value> <string>dms_module = getattr(context, \'document_module\', None)\n
attachment_info_list = context.getAttachmentInformationList()\n
-N_ = context.Base_translateString\n
+Base_translateString = context.Base_translateString\n
if dms_module is not None:\n
for uid in uids:\n
# Maybe select Line can be improved later\n
@@ -88,12 +88,12 @@
\n
if len(uids) == 1:\n
return context.REQUEST.RESPONSE.redirect(\n
- \'%s/view?portal_status_message=%s+%s.\' % (doc.absolute_url(), doc.getTranslatedPortalType(),\n
- N_(\'+Created+Successfully\')))\n
+ \'%s/view?portal_status_message=%s+%s.\' % (doc.absolute_url(), doc.getTranslatedPortalType(),\n
+ Base_translateString(\'+Created+Successfully\')))\n
\n
return context.REQUEST.RESPONSE.redirect(\n
- \'%s?portal_status_message=%s+%s.\' % (dms_module.absolute_url(),len(uids),\n
- N_(\'+Documents+created+Successfully\')))\n
+ \'%s?portal_status_message=%s+%s.\' % (dms_module.absolute_url(),len(uids),\n
+ Base_translateString(\'+Documents+created+Successfully\')))\n
</string> </value>
</item>
<item>
@@ -151,7 +151,7 @@
<string>dms_module</string>
<string>_getattr_</string>
<string>attachment_info_list</string>
- <string>N_</string>
+ <string>Base_translateString</string>
<string>_getiter_</string>
<string>uid</string>
<string>_getitem_</string>
Modified: erp5/trunk/bt5/erp5_crm/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/change_log?rev=23251&r1=23250&r2=23251&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_crm/bt/change_log Thu Aug 28 17:47:53 2008
@@ -1,3 +1,6 @@
+2008-08-28 yusei
+* Use Base_translateString or translateString instead of N_ for translation message.
+
2008-07-17 jerome
Remove portal transforms, they are also in core
Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=23251&r1=23250&r2=23251&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision Thu Aug 28 17:47:53 2008
@@ -1,1 +1,1 @@
-295
+296
More information about the Erp5-report
mailing list