Commit 795fb8d5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add Localizer or Message Catalogs correctly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1351 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e82f076
......@@ -330,8 +330,8 @@ class ERP5Generator(PortalGenerator):
# Add Message Catalog
addLocalizer = p.manage_addProduct['Localizer'].manage_addLocalizer
addLocalizer('', ('en',))
localizer = getToolByName('Localizer')
addMessageCatalog = localizer.manage_addMessageCatalog
localizer = getToolByName(p, 'Localizer')
addMessageCatalog = localizer.manage_addProduct['Localizer'].manage_addMessageCatalog
addMessageCatalog('default', 'ERP5 Localized Messages', ('en'))
addMessageCatalog('erp5_ui', 'ERP5 Localized Interface', ('en'))
addMessageCatalog('erp5_content', 'ERP5 Localized Content', ('en'))
......
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