Commit bab6e724 authored by Jérome Perrin's avatar Jérome Perrin

translate with Base_translateString. Translation with Messages are currently

not working with CMFActivity and TimerService.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10564 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1b19a6e
...@@ -71,8 +71,9 @@ ...@@ -71,8 +71,9 @@
<value> <string>"""Create a related payment transaction, using the account `node`, the payment\n <value> <string>"""Create a related payment transaction, using the account `node`, the payment\n
`payment`, and setting the payment mode `payment_mode`.\n `payment`, and setting the payment mode `payment_mode`.\n
"""\n """\n
from Products.ERP5Type.Message import Message\n # translate with Base_translateString which is a bit more robust during activities\n
N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n # because it doesn\'t rely on REQUEST[\'PARENTS\']\n
N_ = context.Base_translateString\n
\n \n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
payment_dict = {}\n payment_dict = {}\n
...@@ -160,7 +161,7 @@ if not batch_mode:\n ...@@ -160,7 +161,7 @@ if not batch_mode:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -190,11 +191,9 @@ if not batch_mode:\n ...@@ -190,11 +191,9 @@ if not batch_mode:\n
<string>payment_mode</string> <string>payment_mode</string>
<string>payment</string> <string>payment</string>
<string>batch_mode</string> <string>batch_mode</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>N_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>N_</string>
<string>portal</string> <string>portal</string>
<string>payment_dict</string> <string>payment_dict</string>
<string>is_source</string> <string>is_source</string>
...@@ -221,7 +220,6 @@ if not batch_mode:\n ...@@ -221,7 +220,6 @@ if not batch_mode:\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<string></string>
<int>0</int> <int>0</int>
</tuple> </tuple>
</value> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment