Commit 18365c04 authored by Jérome Perrin's avatar Jérome Perrin

initialise translation domains to erp5_ui on module type information


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22449 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37239325
......@@ -84,6 +84,9 @@ module_portal_type_value.manage_changeProperties(\n
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 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<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 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<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>
......
869
\ No newline at end of file
870
\ No newline at end of file
......@@ -127,6 +127,11 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
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):
......
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