From 2001a48838d985802cfced688021975e8271e562 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Wed, 30 Sep 2009 14:00:27 +0000
Subject: [PATCH] forget to commit this file in r29325, sorry

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29327 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../BusinessTemplate_getModifiedObject.xml    | 27 ++++++++++++++-----
 product/ERP5/bootstrap/erp5_core/bt/revision  |  2 +-
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
index 4106e22ed9..341dc7583f 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
@@ -55,6 +55,7 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.ERP5Type.Document import newTempBase\n
 from Products.ERP5Type.Cache import CachingMethod\n
+Base_translateString = context.Base_translateString\n
 \n
 def getModifiedObjectList(context):\n
   result = context.preinstall()\n
@@ -79,23 +80,29 @@ no_backup_dict = {}\n
 for k in no_backup_list:\n
   no_backup_dict[k] = 1\n
 \n
+install_title = Base_translateString(\'Install\')\n
+upgrade_title = Base_translateString(\'Upgrade\')\n
+backup_title = Base_translateString(\'Backup And Upgrade\')\n
+remove_title = Base_translateString(\'Remove\')\n
+save_and_remove_title = Base_translateString(\'Backup And Remove\')\n
+\n
 i = 0\n
 object_list = []\n
 for object_id in keys:\n
   object_state, object_class = modified_object_list[object_id]\n
   line = newTempBase(context, \'tmp_install_%s\' %(str(i)))\n
   if object_state == \'New\':\n
-    choice_item_list=[[\'Install\', \'install\']]\n
+    choice_item_list=[[install_title, \'install\']]\n
   elif object_state == \'Modified\':\n
     if object_class in no_backup_dict:\n
-      choice_item_list=[[\'Upgrade\', \'install\']]\n
+      choice_item_list=[[upgrade_title, \'install\']]\n
     else:\n
-      choice_item_list=[[\'Backup And Upgrade\', \'backup\']]\n
+      choice_item_list=[[backup_title, \'backup\']]\n
   elif object_state == \'Removed\':\n
     if object_class in no_backup_dict:\n
-      choice_item_list=[[\'Remove\', \'remove\']]\n
+      choice_item_list=[[remove_title, \'remove\']]\n
     else:\n
-      choice_item_list=[[\'Backup And Remove\', \'save_and_remove\']]\n
+      choice_item_list=[[save_and_remove_title, \'save_and_remove\']]\n
 \n
   line.edit(object_id=object_id,\n
                 object_state=object_state,\n
@@ -148,16 +155,22 @@ return object_list\n
                             <string>newTempBase</string>
                             <string>Products.ERP5Type.Cache</string>
                             <string>CachingMethod</string>
-                            <string>getModifiedObjectList</string>
+                            <string>_getattr_</string>
                             <string>context</string>
+                            <string>Base_translateString</string>
+                            <string>getModifiedObjectList</string>
                             <string>modified_object_list</string>
-                            <string>_getattr_</string>
                             <string>keys</string>
                             <string>no_backup_list</string>
                             <string>no_backup_dict</string>
                             <string>_getiter_</string>
                             <string>k</string>
                             <string>_write_</string>
+                            <string>install_title</string>
+                            <string>upgrade_title</string>
+                            <string>backup_title</string>
+                            <string>remove_title</string>
+                            <string>save_and_remove_title</string>
                             <string>i</string>
                             <string>object_list</string>
                             <string>object_id</string>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index cd227f135e..939ab6d070 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-1316
\ No newline at end of file
+1317
\ No newline at end of file
-- 
2.30.9