From 4be4e7743337658a8c74c36dc7419c56a48f63b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 26 Jul 2010 12:09:03 +0000 Subject: [PATCH] transition title are using "transition" as context, not "action" git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37271 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_core/Base_getWorkflowHistoryItemList.xml | 4 +++- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml index 772a0134f8..97a07876dc 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml @@ -139,8 +139,10 @@ for workflow_item in workflow_item_list:\n value = \'%s\' % value\n elif key == \'actor\':\n value = getActorName(value)\n - elif same_type(value, \'\') and key in (\'action\', \'state\'):\n + elif same_type(value, \'\') and key == \'state\':\n value = getTranslationStringWithContext(context, value, key, workflow_id)\n + elif same_type(value, \'\') and key == \'action\':\n + value = getTranslationStringWithContext(context, value, \'transition\', workflow_id)\n if value is marker:\n value = \'Does not exist\'\n o.setProperty(key, value)\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index d65a7d9591..fc68f3afca 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1638 +1639 \ No newline at end of file -- 2.30.9