Closed Bug 548717 Opened 15 years ago Closed 15 years ago

The language switcher doesn't show selected language

Categories

(Websites Graveyard :: opentochoice.org, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stas, Unassigned)

Details

(Whiteboard: [0.75][1.0-fixed])

The language switcher code looks for the locale code in the URL and pre-selects the corresponding language in the language dropdown. English posts ,however, don't have the locale code in their permalinks, so the language switcher just shows the first language on the list. In 0.5 this was English so no-one noticed, but now that we order languages alphabetically (bug 548666), it's Bulgarian.
Another issue related to this: 1. go to http://opentochoice.org/es and click "read more" 2. change lang to "Polish". You should be on http://opentochoice.org/pl/2010/02/la-eleccion-del-navegador-web-importa/ 3. change lang to English. You'll get Spanish.
Severity: normal → major
Filed bug 548807 for the issue from comment 1. The issue from comment 0 is present on both 0.75 and 1.0.
Whiteboard: [0.75][1.0]
The issue mentioned in comment 0 is now fixed for 1.0, please confirm if at this point it's mandatory to implement on 0.75
If it's simple to backport, I'm game for pushing that fix live today. It's not critical though.
Whiteboard: [0.75][1.0] → [0.75][1.0-fixed]
Summary: English permalinks don't include the locale code (/en/) and break the lang switcher → The language switcher doesn't show selected language
Marking this as fixed. I think it's OK if we change it on Tuesday in 1.0.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified FIXED; I ended up correctly on http://opentochoice.org/2010/02/web-browser-choice-matters/ after following the steps in comment 1.
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.