Commit 851aaf97 authored by Yusei Tahara's avatar Yusei Tahara

2008-08-28 yusei

* Use N_ for translation string.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23210 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd7f23f6
...@@ -80,6 +80,8 @@ except ImportError:\n ...@@ -80,6 +80,8 @@ except ImportError:\n
class WorkflowException(Exception):\n class WorkflowException(Exception):\n
pass\n pass\n
\n \n
N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
\n
invoice = context\n invoice = context\n
\n \n
LOG = lambda msg:context.log(\n LOG = lambda msg:context.log(\n
...@@ -122,7 +124,7 @@ if invoice.getSimulationState() == \'draft\':\n ...@@ -122,7 +124,7 @@ if invoice.getSimulationState() == \'draft\':\n
try :\n try :\n
context.getPortalObject().portal_workflow.doActionFor(\n context.getPortalObject().portal_workflow.doActionFor(\n
invoice, \'confirm_action\',\n invoice, \'confirm_action\',\n
comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'),\n comment=N_(\'Initialized by Delivery Builder\'),\n
skip_period_validation=1)\n skip_period_validation=1)\n
except WorkflowException, e:\n except WorkflowException, e:\n
# The user cannot pass the transition, it\'s OK\n # The user cannot pass the transition, it\'s OK\n
...@@ -194,6 +196,7 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list ...@@ -194,6 +196,7 @@ invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list
<string>WorkflowException</string> <string>WorkflowException</string>
<string>ImportError</string> <string>ImportError</string>
<string>Exception</string> <string>Exception</string>
<string>N_</string>
<string>context</string> <string>context</string>
<string>invoice</string> <string>invoice</string>
<string>LOG</string> <string>LOG</string>
......
2008-08-28 yusei
* Use N_ for translation string.
2008-06-27 yusei 2008-06-27 yusei
* Start to develop version 5.2. * Start to develop version 5.2.
......
121 122
\ No newline at end of file \ 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