[Erp5-report] r22449 - in /erp5/trunk/products/ERP5: bootstrap/erp5_core/SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 11 14:07:49 CEST 2008


Author: jerome
Date: Fri Jul 11 14:07:49 2008
New Revision: 22449

URL: http://svn.erp5.org?rev=22449&view=rev
Log:
initialise translation domains to erp5_ui on module type information

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
    erp5/trunk/products/ERP5/tests/testERP5Core.py

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml?rev=22449&r1=22448&r2=22449&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml Fri Jul 11 14:07:49 2008
@@ -84,6 +84,9 @@
                filter_content_types=1,\n
                allowed_content_types=(object_portal_type_id, ),\n
                group_list=(\'module\',))\n
+# initialize translation domains\n
+module_portal_type_value.changeTranslations(\n
+             properties=dict(title=\'erp5_ui\', short_title=\'erp5_ui\'))\n
 \n
 module_list_form_id = (\'%s_view%sList\' % (module_portal_type,\n
                         object_portal_type)).replace(\' \', \'\')\n
@@ -306,6 +309,7 @@
                             <string>object_portal_type_id</string>
                             <string>_getitem_</string>
                             <string>module_portal_type_value</string>
+                            <string>dict</string>
                             <string>module_list_form_id</string>
                             <string>action_list</string>
                             <string>range</string>
@@ -322,7 +326,6 @@
                             <string>form</string>
                             <string>default_groups</string>
                             <string>group</string>
-                            <string>dict</string>
                             <string>str</string>
                             <string>form_view_id</string>
                             <string>object_portal_type_value</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=22449&r1=22448&r2=22449&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Jul 11 14:07:49 2008
@@ -1,1 +1,1 @@
-869
+870

Modified: erp5/trunk/products/ERP5/tests/testERP5Core.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Core.py?rev=22449&r1=22448&r2=22449&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Core.py (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Core.py Fri Jul 11 14:07:49 2008
@@ -127,6 +127,11 @@
     self.portal.unittest_module.newContent(id='document', portal_type='UnitTest')
     self.portal.unittest_module.document.view()
 
+    # make sure translation domains are set correctly
+    self.assertEquals('erp5_ui',
+        self.portal.unittest_module.getTitleTranslationDomain())
+    self.assertEquals('erp5_ui',
+        self.portal.unittest_module.getShortTitleTranslationDomain())
     
   
   def test_02_FavouritesMenu(self, quiet=quiet, run=run_all_test):




More information about the Erp5-report mailing list