Commit 3be25e2b authored by Yusei Tahara's avatar Yusei Tahara

2008-08-28 yusei

* Use Base_translateString or translateString instead of N_ for translation string.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23257 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1e27263
......@@ -70,7 +70,7 @@
# after the invoice_builder delivery builder has created\n
# the new Sale Invoice Transaction\n
#\n
from Products.ERP5Type.Message import Message\n
from Products.ERP5Type.Message import translateString\n
try:\n
from Products.CMFCore.WorkflowCore import WorkflowException\n
except ImportError:\n
......@@ -81,7 +81,6 @@ except ImportError:\n
pass\n
\n
# Return Message object, so that this message will be translated when it is rendered later.\n
N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
\n
invoice = context\n
\n
......@@ -125,7 +124,7 @@ if invoice.getSimulationState() == \'draft\':\n
try :\n
context.getPortalObject().portal_workflow.doActionFor(\n
invoice, \'confirm_action\',\n
comment=N_(\'Initialized by Delivery Builder\'),\n
comment=translateString(\'Initialized by Delivery Builder\'),\n
skip_period_validation=1)\n
except WorkflowException, e:\n
# The user cannot pass the transition, it\'s OK\n
......@@ -192,12 +191,11 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list
<string>related_simulation_movement_path_list</string>
<string>kw</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>translateString</string>
<string>Products.CMFCore.WorkflowCore</string>
<string>WorkflowException</string>
<string>ImportError</string>
<string>Exception</string>
<string>N_</string>
<string>context</string>
<string>invoice</string>
<string>LOG</string>
......
2008-08-28 yusei
* Use N_ for translation string.
* Use Base_translateString or translateString instead of N_ for translation string.
2008-06-27 yusei
* Start to develop version 5.2.
......
123
\ No newline at end of file
124
\ No newline at end of file
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