[Erp5-report] r10564 - /erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_a...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 5 13:23:44 CEST 2006
Author: jerome
Date: Thu Oct 5 13:23:35 2006
New Revision: 10564
URL: http://svn.erp5.org?rev=10564&view=rev
Log:
translate with Base_translateString. Translation with Messages are currently
not working with CMFActivity and TimerService.
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml?rev=10564&r1=10563&r2=10564&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml Thu Oct 5 13:23:35 2006
@@ -71,8 +71,9 @@
<value> <string>"""Create a related payment transaction, using the account `node`, the payment\n
`payment`, and setting the payment mode `payment_mode`.\n
"""\n
-from Products.ERP5Type.Message import Message\n
-N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
+# translate with Base_translateString which is a bit more robust during activities\n
+# because it doesn\'t rely on REQUEST[\'PARENTS\']\n
+N_ = context.Base_translateString\n
\n
portal = context.getPortalObject()\n
payment_dict = {}\n
@@ -160,7 +161,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>node, payment_mode, payment=\'\', batch_mode=0</string> </value>
+ <value> <string>node, payment_mode, payment, batch_mode=0</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -190,11 +191,9 @@
<string>payment_mode</string>
<string>payment</string>
<string>batch_mode</string>
- <string>Products.ERP5Type.Message</string>
- <string>Message</string>
- <string>N_</string>
<string>_getattr_</string>
<string>context</string>
+ <string>N_</string>
<string>portal</string>
<string>payment_dict</string>
<string>is_source</string>
@@ -221,7 +220,6 @@
<key> <string>func_defaults</string> </key>
<value>
<tuple>
- <string></string>
<int>0</int>
</tuple>
</value>
More information about the Erp5-report
mailing list