From 987567c9f25f158a098dc521e937a8ed744ce15f Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Mon, 23 Jan 2006 09:35:25 +0000 Subject: [PATCH] Revert changes: we must still install translation service as long as aliases are not managed by Localizer. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5242 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/ERP5Site.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index 1d3b9f97c9..bb4ae2fe9b 100755 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -804,6 +804,15 @@ class ERP5Generator(PortalGenerator): addMessageCatalog('erp5_ui', 'ERP5 Localized Interface', ('en',)) addMessageCatalog('erp5_content', 'ERP5 Localized Content', ('en',)) + # Add Translation Service + if p.hasObject('translation_service') and p.translation_service.meta_type != 'Translation Service': + p._delObject('translation_service') + if not p.hasObject('translation_service'): + p.manage_addProduct['TranslationService'].addPlacefulTranslationService('translation_service') + p.translation_service.manage_setDomainInfo(domain_0=None, path_0='Localizer/default') + p.translation_service.manage_addDomainInfo(domain='ui', path='Localizer/erp5_ui') + p.translation_service.manage_addDomainInfo(domain='content', path='Localizer/erp5_content') + def setupMembersFolder(self, p): """ -- 2.30.9