[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - configure.zcml:1.1 i18n.zcml:NONE
Steve Alexander
steve@cat-box.net
Mon, 17 Jun 2002 15:34:11 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv8164/lib/python/Zope/I18n
Added Files:
configure.zcml
Removed Files:
i18n.zcml
Log Message:
changed foo-meta.zcml in tests to meta.zcml
changed zcml filenames to configure.zcml where feasible, and removed
the file attribute of include directives where I could.
=== Added File Zope3/lib/python/Zope/I18n/configure.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:security='http://namespaces.zope.org/security'
xmlns:zmi='http://namespaces.zope.org/zmi'
xmlns:browser='http://namespaces.zope.org/browser'
xmlns:service='http://namespaces.zope.org/service'
xmlns:gts='http://namespaces.zope.org/gts'
>
<!-- Setup language negotiation -->
<serviceType
id="LanguageNegotiation"
interface=".INegotiator." />
<service
serviceType="LanguageNegotiation"
component=".Negotiator.negotiator" />
<adapter factory="Zope.Publisher.Browser.BrowserLanguages."
for="Zope.Publisher.Browser.IBrowserRequest."
provides="Zope.I18n.IUserPreferredLanguages."
/>
<!-- Setup charset negotiation -->
<adapter factory="Zope.Publisher.HTTP.HTTPCharsets."
for="Zope.Publisher.HTTP.IHTTPRequest."
provides="Zope.I18n.IUserPreferredCharsets."
/>
<!-- Register the Translation Service as a content object -->
<content class=".TranslationService.">
<security:require permission="Zope.Public"
interface="Zope.I18n.ITranslationService."
/>
<security:require permission="Zope.ManageServices"
interface="Zope.App.OFS.Container.IContainer."
/>
</content>
<service:factoryFromClass id="TranslationService"
class=".TranslationService."
permission="Zope.ManageServices"
title="Translation Service"
description="A Persistent Translation Service for TTW development" />
<serviceType id="GlobalTranslationService"
interface=".ITranslationService." />
<service serviceType="GlobalTranslationService"
permission="Zope.Public"
component=".GlobalTranslationService.translationService" />
<zmi:icon for=".ITranslationService." file="./i18n_service.gif" />
<!-- Setup Message Catalogs -->
<content class=".MessageCatalog.">
<security:require permission="Zope.Security"
interface=".IMessageCatalog."
/>
<security:require permission="Zope.ManageServices"
attributes="setMessage getMessageIds"
/>
</content>
<factory component=".MessageCatalog."
id="Message Catalog"/>
<!-- Setup Export and Import Filters -->
<adapter factory=".GettextExportFilter."
for=".ITranslationService.IWriteTranslationService."
provides=".IMessageExportFilter."
/>
<adapter factory=".GettextImportFilter."
for=".ITranslationService.IWriteTranslationService."
provides=".IMessageImportFilter."
/>
<gts:registerTranslations directory="./locale" />
<include package=".Views" />
</zopeConfigure>
=== Removed File Zope3/lib/python/Zope/I18n/i18n.zcml ===