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 http://neshamn.no/++lang++test
Traceback (most recent call last):
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/publisher/publish.py",
line 130, in publish
   obj = request.traverse(obj)
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/publisher/browser.py",
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/http.py",
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/base.py",
line 292, in traverse
   obj = publication.traverseName(self, obj, entry_name)
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/publication/publicationtraverse.py",
line 45, in traverseName
   ob2 = namespaceLookup(ns, nm, ob, request)
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/traversing/namespace.py",
line 109, in namespaceLookup
   return traverser.traverse(name, ())
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/traversing/namespace.py",
line 358, in traverse
   languages.setPreferredLanguages([name])
 File 
"/home/zope3/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/publisher/browser/__init__.py",
line 117, in setPreferredLanguages
   raise NotCompatibleAdapterError("Adapter not compatible with "
NotCompatibleAdapterError: Adapter not compatible with
zope.i18n.interfaces.IModifiableBrowserLanguages has been used.
129.177.20.93 - - [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:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5"


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?

Jeremy

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:

http://hlabs.spb.ru/++lang++ru
http://hlabs.spb.ru/++lang++en

--
Dmitry Vasiliev <dima at hlabs.spb.ru>
http://hlabs.spb.ru



--
[EMAIL PROTECTED]                        tlf: +47 55 58 40 65
Parallab                  Bergen Centre for Computational Science
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to