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

Re: web site bug report: language switches back to default every time you click a link



Hello,

On Sat, Feb 24, 2007 at 02:07:06PM +0100, Matteo Sisti Sette wrote:
> I went to www.debian.org and by default it automatically chose to display in 
> italian and it was fine cause I'm italian, but I preferred to read it in 
> English, so I clicked on the link on the bottom to display it in english.
> Now, when I clicked on the link to the "installation instruction" page, that 
> new page displayed in italian again.
> So I switched it to english again.
> Then I go to "getting debian", and there it is, in italian again.
> 
> It is very annoying.
> It is ok that the system uses the browser localitation setting by default, 
> but once the user has expressed a preference, that should be kept during the 
> session!!!

"It's not a bug, it's a feature" :-)

There is no cookies or php session tracking on the debian website,
because the website must be static in order to be easily mirrored (and
because content-negociation is a light and powerful way to provide a
multilanguages website).

So since you browser sends "Accept-Language: it, en" to the debian
website (even if you were on a english page when you clicked), the
server send you back the next pages in italian.

If you prefer to view webpages in english rather than in italian, you
should configure you browser to ask the pages in that order :
"Accept-Language: en, it".

With such a configuration, whatever the website [that uses content
negociation] you browse, it will send you the english otherwise italian.

http://www.us.debian.org/intro/cn#howtoset to see how to configure your
browser.

Best regards,

-- 
Simon Paillard



Reply to: