Commit 39de4649 authored by Jérome Perrin's avatar Jérome Perrin

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
parent c65c3901
......@@ -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>
......
194
\ No newline at end of file
195
\ 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