Logo Search packages:      
Sourcecode: zope-cps-translationservice version File versions  Download package

__init__.py

# (C) Copyright 2002 Nuxeo SARL <http://nuxeo.com>
# Author: Florent Guillaume <fg@nuxeo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
# $Id: __init__.py 31169 2006-01-02 00:35:03Z fguillaume $

from Products.TranslationService import PlacefulTranslationService as PTS
from Products.PageTemplates.GlobalTranslationService import \
     setGlobalTranslationService

setGlobalTranslationService(PTS.PlacefulTranslationServiceLookup())

def initialize(registrar):
    registrar.registerClass(
        PTS.PlacefulTranslationService,
        permission=PTS.ManageTranslationServices,
        constructors=(PTS.addPlacefulTranslationServiceForm,
                      PTS.addPlacefulTranslationService),
        icon='translation_service_icon.png')

Generated by  Doxygen 1.6.0   Back to index