#2133 fedoraproject.org Website Accept-Language erratic.
Closed: Fixed None Opened 13 years ago by ruigo.

= phenomenon =

Hi,

Every time I access the Fedora Project website (http://fedoraproject.org/), I
am greeted with the pt_BR version of it. In my Firefox I've got defined the
languages "pt, en". So, I'm thinking that if the site ignores my language
preferences, I should have received the English version, if not, and the
pt is not an option, I should receive the English version as well, and
not the Brazilian.

Firefox doesn't have a "pt-PT" version of this string. The available options are "pt" for Portuguese and "pt-br" for Brasilean. So I tested it with the German language.

I've tried both: "de" and "de_CH". When I choose "de" as preferred language in
Firefox, I get the "de" page. When I choose "de_CH" I get the "de_CH" page.

So, why doesn't this works exactly like this for "pt"?

= reason =

I don't know.

= recommendation =

Please make this work for pt_PT page like the de_CH.

More info in this bug: https://bugzilla.redhat.com/show_bug.cgi?id=588701


I just set my browser language to pt and it worked fine. Are you sure you have pt over en in your firefox preferences?

Also make sure you're going to http://fedoraproject.org/ and not http://fedoraproject.org/en/

It would also be helpful if I could get your "Accept-Language" header during a failure. You can get that by installing the firefox plugin "Live http headers" You're looking for something like:

"Accept-Language: pt,en-us;q=0.7,*;q=0.7"

Firefox accepted-language configuration
CapturaEcra-Idiomas.png

http headers transaction accessing fedoraproject.org
fedoraproject.org-http-headers.txt

Hi,

Thank you for your time.

I'm providing two attachments.

The Firefox dialog box where you can see the languages selected, and their respective order. (Interface is in Portuguese. Sorry.) Please, note that pt-br is not on the list.

The other one is the http headers log. Thanks for this tip. It helped a lot. As you can see, the request is fine and the response is pt-br.

It's a mystery to me.

Thank you again.

Rui Gouveia

Yeah I see the response is - Content-Location: index.html.pt_BR Can you take a screenshot of the page you actually saw come up?

Replying to [comment:3 mmcgrath]:

Yeah I see the response is - Content-Location: index.html.pt_BR Can you take a screenshot of the page you actually saw come up?

Done.
I had to resize and crop the screenshot. If you need a better one, please ask.

Thanks

Yeah, something strange is going on here. I'm continuing to look at this but I am getting nowhere. And it seems to be completely unqiue to pt vs pt_BR. others are working fine (like de vs de_CH)

Finally someone who believes me :)
Thank you.

I'm a sysadmin myself and I have some programming skills. Can I help?

Rui Gouveia

See if you can reproduce it. Here's the config lines we have:

http://mmcgrath.fedorapeople.org/languages.conf

Hi,

I just noticed... the site http://docs.fedoraproject.org/ works as expected.
Does this clue helps?

Thank You

Rui Gouveia

Hi,

In the 28 of October the new website was working as expected. Today, 30 of October the problem is back. I don't understand!

What changed in these two days?

Could it be DNS related?
What about ASN (http://en.wikipedia.org/wiki/Autonomous_System_Number)

Thanks
Rui Gouveia

The mechanisms involved only use language headers from the browser to auto detect, but manual selection as an override. You say it was actually working on the 28th? That's interesting... I still don't understand why it'd be busted in any way. If you do see it working again can you please let us know ASAP? It might help to see what state the machine is in.

It was working before the change in the languages names. Could this be related?

Thanks

Rui Gouveia

Does this ticket still apply? ;)

I get the same page for pt and pt_BR

de gets me the english page, and de_CH gets me german.

Replying to [comment:12 kevin]:

Does this ticket still apply? ;)

Unfortunatly, yes.

I get the same page for pt and pt_BR

If you select the language after the page is loaded, there are still some diferences.

For example, in the menu:

pt = "Funcionalidades & Imagens de Ecrã"
pt_br = "Funcionalidades & capturas de tela"

The problem is that the default page is always the pt_br version, even if this one is not in the browser prefered languages. (see attach: fedoraproject-headers.png)

de gets me the english page, and de_CH gets me german.

This would be acceptable, if the translation was missing. That's not the case for the Portuguese version.

Can you please send me (again) the configuration of the webserver, the script that has the programming logic for this task, and all the index.html.* language files. I'm going to try to recreate the problem in my server.

Thanks for your time

Rui Gouveia

Replying to [comment:13 ruigo]:

Can you please send me (again) the configuration of the webserver, the script that has the programming logic for this task, and all the index.html.* language files. I'm going to try to recreate the problem in my server.

Follow the steps provided in this wiki page on how to get a copy of our website:
http://fedoraproject.org/wiki/How_to_fix_bugs_on_the_Fedora_Project_website

This will create the index.html.* files for you and also include the languages.conf files we use that should be similar (if not) identical to what's on fp.o.

Can you see if this is still happening?

If so, can you re-open this over on our websites trac?

https://fedorahosted.org/fedora-websites/

thanks!

At least it is happening in other languages. Please add you in CC on the following ticket if still incorrect for you.

https://fedorahosted.org/fedora-websites/ticket/190

Login to comment on this ticket.

Metadata