[Zope3-dev] Job Board Example

Guido van Rossum guido@python.org
Mon, 17 Jun 2002 21:52:22 -0400


> > Here's another bug.  When I specify my preferences in this order:
> > 
> >   en-us
> >   it
> >   en
> >   nl
> > 
> > I get the Italian translation.  I would have expected to get the
> > English one.
> 
> Not if the English one is specified as "en". According to the http content
> negotiation spec, it's ok to serve "en-us" if the user requested "en", but
> it's not ok to serve "en" if the user requested "en-us".
> 
> This rule may sound silly, but it's very convenient for languages with more
> variation. For example, if I configure my browser to request "pt-br" I'm
> sure to get something I can understand; "pt-pt" is a bit strange for
> Brazilians and I can understand "en-us" better than "pt-pt", and it only
> gets worse for the dialects of Angola and Macao.

OK, I think I get it.  So I should specify the languages in this
order:

   nl
   en-us
   en
   it

Makes sense.

--Guido van Rossum (home page: http://www.python.org/~guido/)