[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Language negotiation problem

Hi Sylvain,

On Sat, Sep 02, 2006 at 12:08:56AM +0200, Sylvain Sauvage wrote:
> it seems there is a problem with content language negotiation on
> www.debian.org (and also mirrors, like www.fr.debian.org): although my

no, I don't think so, but there is a problem with Konqueror which
currently fails to support content negotiation (bug #358459).

> client declares it accepts "fr, en" (so French first), I only get english

Yep, you need to define ratings, the order is IIRC not sufficient. See
www.debian.org/intro/cn for details.

> pages. Even if I select the french page, following a link leads me to an
> english one (which is coherent to language negotiation though).
> 2. open http://localhost:8080 in the web client (Konqueror or Firefox),
> and I get this from Firefox:
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv: Gecko/20060728 Firefox/ (Debian-1.5.dfsg+
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: fr-fr,fr;q=0.8,en-us;q=0.5,en;q=0.3

This looks good. Are you sure you get only English pages with firefox?

> So why is the behaviour different from times to times?

>From time to time? The bahaviour is not static?

> Sometimes I get the first listed language, sometimes English, or the last
> one...
> Maybe I'm wrong, but it seems www.debian.org does something wrong,
> doesn't it ?

Please a different server, such as www.de.debian.org. Can you still
reproduce it?


Reply to: