diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml index aa67ba5967d3661c2c5a54e4b3c22db2eea6ee99..b534ace448ecd22bd5092fdc36ed4f76c024b680 100644 --- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml +++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGenerationActivity.xml @@ -80,6 +80,8 @@ except ImportError:\n class WorkflowException(Exception):\n pass\n \n +N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n +\n invoice = context\n \n LOG = lambda msg:context.log(\n @@ -122,7 +124,7 @@ if invoice.getSimulationState() == \'draft\':\n try :\n context.getPortalObject().portal_workflow.doActionFor(\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 except WorkflowException, e:\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 <string>WorkflowException</string> <string>ImportError</string> <string>Exception</string> + <string>N_</string> <string>context</string> <string>invoice</string> <string>LOG</string> diff --git a/bt5/erp5_invoicing/bt/change_log b/bt5/erp5_invoicing/bt/change_log index 95497a65a2f218c90c6aff30da6819dc431fb2e7..2e56e7db70b041cf0dc1fcd7acba3a754bea12bc 100644 --- a/bt5/erp5_invoicing/bt/change_log +++ b/bt5/erp5_invoicing/bt/change_log @@ -1,3 +1,6 @@ +2008-08-28 yusei +* Use N_ for translation string. + 2008-06-27 yusei * Start to develop version 5.2. @@ -18,4 +21,4 @@ * use related_simulation_movement_path_list to reduce activity dependencies. 2007-12-6 jerome -* initial creation, from splitting erp5_accounting +* initial creation, from splitting erp5_accounting \ No newline at end of file diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision index 5a396e28e80321703d56c67ec21cc076b67f5d46..3fdc173dabdd1038c973c374ec30f55cfddafdfb 100644 --- a/bt5/erp5_invoicing/bt/revision +++ b/bt5/erp5_invoicing/bt/revision @@ -1 +1 @@ -121 \ No newline at end of file +122 \ No newline at end of file