[Zope3-dev] Re: What if HTTP_ACCEPT_LANGUAGE is not set?

Fred L. Drake, Jr. fdrake@acm.org
Tue, 18 Jun 2002 08:31:12 -0400


Barry A. Warsaw writes:
 > I think it's up for debate whether we should attempt to fallback to
 > some other language if there's no browser preference.  This might
 > align with the ability to explicitly select a language (i.e. a select
 > menu with a default of English).

There should be a way to set a list of languages to use when the
browser doesn't specify language.  I presume this should be
"placeful", but I've no idea how to go about implementing this.

Another thing that should be considered is changing urllib to add an
Accept-Language header based on the user's locale settings.  This
could even be done in httplib, adding the header if the user hasn't
done so already when endheaders() is called.  The later seems a bit
more magical, though.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation