From 29537541eaa9dd66644f757a659ca46746770ef1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 17 Feb 2009 10:25:18 +0000
Subject: [PATCH] module titles should be translated with erp5_ui

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25593 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Document%20Module.xml        |  4 +-
 .../External%20Source%20Module.xml            | 59 +++++++++++++++++++
 .../portal_types/Image%20Module.xml           | 59 +++++++++++++++++++
 bt5/erp5_dms/bt/revision                      |  2 +-
 4 files changed, 121 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Document%20Module.xml b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Document%20Module.xml
index 1cc36e742c..8e3f0dd489 100644
--- a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Document%20Module.xml
+++ b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Document%20Module.xml
@@ -132,7 +132,7 @@
       <dictionary>
         <item>
             <key> <string>domain_name</string> </key>
-            <value> <string>erp5_content</string> </value>
+            <value> <string>erp5_ui</string> </value>
         </item>
         <item>
             <key> <string>property_name</string> </key>
@@ -152,7 +152,7 @@
       <dictionary>
         <item>
             <key> <string>domain_name</string> </key>
-            <value> <string>erp5_content</string> </value>
+            <value> <string>erp5_ui</string> </value>
         </item>
         <item>
             <key> <string>property_name</string> </key>
diff --git a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/External%20Source%20Module.xml b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/External%20Source%20Module.xml
index 8e7c0eaaf7..320ce6f8c4 100644
--- a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/External%20Source%20Module.xml
+++ b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/External%20Source%20Module.xml
@@ -21,6 +21,25 @@
               <dictionary/>
             </value>
         </item>
+        <item>
+            <key> <string>_property_domain_dict</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>short_title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
@@ -103,4 +122,44 @@ be a problem).</string> </value>
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_ui</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>short_title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_ui</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Image%20Module.xml b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Image%20Module.xml
index 64768c7584..76ac72c8a5 100644
--- a/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Image%20Module.xml
+++ b/bt5/erp5_dms/PortalTypeTemplateItem/portal_types/Image%20Module.xml
@@ -21,6 +21,25 @@
               <dictionary/>
             </value>
         </item>
+        <item>
+            <key> <string>_property_domain_dict</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>short_title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
@@ -102,4 +121,44 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_ui</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>short_title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_ui</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index 972fd77833..a8a24cbb2f 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-958
\ No newline at end of file
+959
\ No newline at end of file
-- 
2.30.9