[Zope] five i18n

Martijn Faassen faassen at infrae.com
Wed Jan 18 09:41:01 EST 2006


Jürgen Herrmann wrote:
> just tried this:
> 
> hacked in a MyLanguages in five's i18n.py:
> 
> class MyLanguages(object):
>     """ fake """
>     implements(IUserPreferredLanguages)
> 
>     def __init__(self, context):
>         self.context = context
> 
>     def getPreferredLanguages(self):
>         return ('DE')
> 
> and in my overrides.zcml added:
>     <adapter
>         for="zope.publisher.interfaces.http.IHTTPRequest"
>         provides="zope.i18n.interfaces.IUserPreferredLanguages"
>         factory="Products.Five.i18n.MyLanguages" />

Oh, I see you already did what I did in the sample code above.

Regards,

Martijn



More information about the Zope mailing list