Commit b04f9bea authored by Yusei Tahara's avatar Yusei Tahara

Use variable name Base_translateString instead of translate.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4cb2608
......@@ -65,14 +65,15 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>translate = context.Base_translateString\n
<value> <string>Base_translateString = context.Base_translateString\n
item_list = [(\'\', \'\')]\n
for action in context.portal_actions.listFilteredActionsFor(brain).get(\'workflow\', []):\n
transition = action.get(\'transition\', None)\n
if transition is not None:\n
workflow_id = action[\'transition\'].aq_parent.aq_parent.getId()\n
if workflow_id == brain.workflow_id:\n
item_list.append((translate(action[\'title\']), \'%s/%s\' % (workflow_id, action[\'id\'])))\n
item_list.append((Base_translateString(action[\'title\']),\n
\'%s/%s\' % (workflow_id, action[\'id\'])))\n
\n
return item_list\n
</string> </value>
......@@ -135,7 +136,7 @@ return item_list\n
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>translate</string>
<string>Base_translateString</string>
<string>item_list</string>
<string>_getiter_</string>
<string>action</string>
......
955
\ No newline at end of file
956
\ 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