[Erp5-report] r19570 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 29 10:14:26 CET 2008
Author: nicolas
Date: Fri Feb 29 10:14:26 2008
New Revision: 19570
URL: http://svn.erp5.org?rev=19570&view=rev
Log:
Translate Action Title for Mass workflow Transitions
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml?rev=19570&r1=19569&r2=19570&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml Fri Feb 29 10:14:26 2008
@@ -65,13 +65,14 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>item_list = [(\'\', \'\')]\n
+ <value> <string>translate = 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((action[\'title\'], \'%s/%s\' % (workflow_id, action[\'id\'])))\n
+ item_list.append((translate(action[\'title\']), \'%s/%s\' % (workflow_id, action[\'id\'])))\n
\n
return item_list\n
</string> </value>
@@ -132,10 +133,11 @@
<tuple>
<string>brain</string>
<string>kw</string>
+ <string>_getattr_</string>
+ <string>context</string>
+ <string>translate</string>
<string>item_list</string>
<string>_getiter_</string>
- <string>_getattr_</string>
- <string>context</string>
<string>action</string>
<string>None</string>
<string>transition</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=19570&r1=19569&r2=19570&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Feb 29 10:14:26 2008
@@ -1,1 +1,1 @@
-711
+712
More information about the Erp5-report
mailing list