Thanks Dmitry,

I can see how it should work. However I am still having trouble. My
application is initially based on the wcsite example and is intended
to be really not any more complex than that so I wanted to keep it
that way. However I have probably inherited something from wcsite that
I don't fully understand. I made a small amount of progress but I
still get the following error with ++lang++test:

2007-07-19T13:18:26 ERROR SiteError
Traceback (most recent call last):
line 130, in publish
   obj = request.traverse(obj)
line 506, in traverse
   ob = super(BrowserRequest, self).traverse(obj)
 File "/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/publisher/",
line 461, in traverse
   ob = super(HTTPRequest, self).traverse(obj)
 File "/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/publisher/",
line 292, in traverse
   obj = publication.traverseName(self, obj, entry_name)
line 45, in traverseName
   ob2 = namespaceLookup(ns, nm, ob, request)
line 109, in namespaceLookup
   return traverser.traverse(name, ())
line 358, in traverse
line 117, in setPreferredLanguages
   raise NotCompatibleAdapterError("Adapter not compatible with "
NotCompatibleAdapterError: Adapter not compatible with
zope.i18n.interfaces.IModifiableBrowserLanguages has been used. - - [19/Jul/2007:13:18:26 +0200] "GET /++lang++test
HTTP/1.1" 500 84 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
rv: Gecko/20070713 Firefox/"

I am not sure which adapter it is referring to and I am not sure how
to find out either. Since my site will only be in Norwegian, I have a
workaround which is to hard code the locale to 'no' so that dates and
such are formatted correctly, but I would still like to understand
what is wrong here.

Any ideas?


On 04/07/07, Dmitry Vasiliev <[EMAIL PROTECTED]> wrote:
Jeremy Cook wrote:
> Is there an example site where ++lang++whatever works? I have tried
> always with this at the beginning of the path to no avail. It would be
> nice to see it working as a confidence builder.

You can look at my site. :-) It only in Russian for now (since I've
rebuilt it from scratch about a month ago) but a few fields already
translated to English so the following URLs work as expected:

Dmitry Vasiliev <dima at>

[EMAIL PROTECTED]                        tlf: +47 55 58 40 65
Parallab                  Bergen Centre for Computational Science
Zope3-users mailing list

Reply via email to