Automatic language detection bug

Bug #483884 reported by Timo Jyrinki on 2009-11-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SpreadUbuntu
Undecided
Unassigned

Bug Description

Hi. When I had some automatic " [fi-fi]" in the preferred language of Firefox settings as first, http://spreadubuntu.neomenlo.org/ gave me Italiano by default. When I removed and left the more correct (foundable on the Firefox's language list) "suomi [fi]", it started showing me English. Either way, I didn't get Finnish without selecting "suomi" manually from the language list.

Ruben Romero (huayra) wrote :

This needs to be checked. In this case it might have something to do with the locale being defined as fi-fi and not fi (I am just thinking now, this could be totally wrong.)

Evan, do we map languages to one defined locale (FI) or a group of locales for each language (ES, ES-ar, ES-mx)?

A possible solution for this problem, in general, could be pulling language preferences from Launchpad profiles for users that log into the site and have the default locale in the browser as the automatical fallback for the first time visitors and users that do not log in.

Evan Boldt (echowarp) wrote :

Launchpad isn't really a fix. Almost nobody uses LP login compared to the users that simply visit anonymously.

I would like to check this. Figure out an exact correlation of what languages on what pages.

I have to wonder if there is something else that its detecting. Like maybe some kind of javascript or other browser information that its intercepting other than the default specified in preferences.

Are you using Firefox, timo? Has fi always been your default language?

Timo Jyrinki (timo-jyrinki) wrote :

Firefox, yes. Fi has been the default language. The " fi-fi" (note also the blanks there, dunno what that means) came probably from installation automatically via ubufox or something, but when editing Firefox language preferences manually the form is always "[language] [language-code]". I did have some extra languages in the preferred, ie. fi as the most preferred, en as the second and even de as the third one. Now I only have fi, and...

...hey, did you change something now? Now it seems to work. Or maybe the main problem was the installation default form of "fi-fi" and the yesterday's English after fixing the Firefox language preferences manually was caused simply by an old cookie or something.

There anyway may be something to check through, unless you already did something. Like being more failproof if the language code is two parts, or possibly if there are more than one preferred languages, pick the most preferred etc.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers