From 39de4649bc5cb1380ca2361544813daaff5d970a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sun, 19 Nov 2006 22:45:50 +0000
Subject: [PATCH] In workflow history, we should only translate
 'error_message', 'action' and 'state' variables

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11370 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_core/Base_getWorkflowHistoryItemList.xml             | 4 ++--
 product/ERP5/bootstrap/erp5_core/bt/revision                  | 2 +-
 2 files changed, 3 insertions(+), 3 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 2b09da6d29..5efbd0bffb 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
@@ -116,7 +116,7 @@ for workflow_item in workflow_item_list:\n
         value = \'%s\' %value\n
       elif key == \'error_message\' and same_type(value, \'\'):\n
         value = context.Localizer.erp5_ui.gettext(value)\n
-      if same_type(value, \'\') and key != \'error_message\':\n
+      elif same_type(value, \'\') and key in ( \'action\', \'state\' ): \n
         value = context.Localizer.erp5_ui.gettext(value)\n
     o.setProperty(key, value)\n
  \n
@@ -144,7 +144,7 @@ return result\n
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>workflow_id,display=1, **kw</string> </value>
+            <value> <string>workflow_id, display=1, **kw</string> </value>
         </item>
         <item>
             <key> <string>_proxy_roles</string> </key>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 4be28fd89c..a0b994e372 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-194
\ No newline at end of file
+195
\ No newline at end of file
-- 
2.30.9