Closed Bug 655875 Opened 13 years ago Closed 13 years ago

Language switcher doesn't know about the current locale

Categories

(Websites Graveyard :: markup.mozilla.org, defect)

Firefox 4
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stas, Unassigned)

Details

(Keywords: l12y)

For context, see bug 647376, bug 652912 and bug 655305.

It looks like LANGUAGE_CODE doesn't work in the templates.  Consequently, the current locale name is not displayed when the lang chooser is closed, and it's not highlighted when it's open.
Is this a tbg or moz bug?
Updated use of LANGUAGE_CODE to LANG.

https://github.com/mozilla/markup/commit/ebe1b281f77232c343e20624fc1087a3baa1760c

Found another issue... chlocale helper doesn't work, since it doesn't understand our new setup.

I've made the switcher hardcode to /<locale> instead of taking the current url and fixing it up to the new locale. It' will be a bit of work to get this working with a chlocale like helper.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Thanks Austin!(In reply to comment #2)

> Found another issue... chlocale helper doesn't work, since it doesn't
> understand our new setup.
> 
> I've made the switcher hardcode to /<locale> instead of taking the current
> url and fixing it up to the new locale. It' will be a bit of work to get
> this working with a chlocale like helper.

I filed bug 656470 to remember about this.

Thanks for the fix, Austin.
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.