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
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )