Closed Bug 778124 Opened 12 years ago Closed 12 years ago

[ia] Implement new locale switcher view

Categories

(support.mozilla.org :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2012.15

People

(Reporter: rrosario, Assigned: rrosario)

References

Details

(Whiteboard: u=user c=general p=2)

The designs for the new IA have a page for switching locale that is linked to from the new header. This replaces the current dropdown selector in the footer.

Some details:
* The view should probably live in apps/sumo, unless you can think of a more logical home for it.
* The url should be /<current locale>/locales
* After selecting a language, the user should be redirected back to the same page they were on before but in the new locale. This is tricky for KB pages because the slug can be different for each locale. See current implementation.

This bug is about getting the working view in and linked to from the header (bug 777509). We'll deal with nailing the style in a later bug (we don't have designs for this page yet).
Blocks: 768210
Whiteboard: 768210 → u=user c=general p=
Priority: -- → P1
Bram, can you clarify what we want to do here? I thought we'd re-purpose the current language switcher and would move it to the top. Do we really need an extra page to show languages? If yes, we'd need a mock-up I assume, it wasn't part of Lee's deliverables.
(In reply to Kadir Topal [:atopal] from comment #1)
> Bram, can you clarify what we want to do here? I thought we'd re-purpose the
> current language switcher and would move it to the top. Do we really need an
> extra page to show languages?

I think it would be great to move it to a new page. Right now a good % chunk of the HTML on every single page loaded is that dropdown with ~80 or so languages in it.
We need to list all the enabled locales in a template and pass around the page the user comes from in the query string to redirect forward. We need good tests for this. I don't think it shouldn't take more than a day => 2pt
Whiteboard: u=user c=general p= → u=user c=general p=2
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #2)
> (In reply to Kadir Topal [:atopal] from comment #1)
> > Bram, can you clarify what we want to do here? I thought we'd re-purpose the
> > current language switcher and would move it to the top. Do we really need an
> > extra page to show languages?
> 
> I think it would be great to move it to a new page. Right now a good % chunk
> of the HTML on every single page loaded is that dropdown with ~80 or so
> languages in it.

That’s correct. Our plan for this was to show the language in a new page. I am going to mock it up today.
See attachment 647830 [details] and attachment 647837 [details] for two possible language picker designs.

In this implementation, I sorted the language based on completion of coverage, according to the SUMO Locales information document:

https://docs.google.com/spreadsheet/ccc?key=0ApOS1XP_5PqvdGN6M0tLdzQxVFBRaDhmSDV5dnF5NFE#gid=0
Assignee: nobody → rrosario
That list is changing constantly. How about using the wikipedia method and listing them by their locale code? eg: de, fr, it, ja
Blocks: 780600
(In reply to Kadir Topal [:atopal] from comment #6)
> That list is changing constantly. How about using the wikipedia method and
> listing them by their locale code? eg: de, fr, it, ja

Are you suggesting we sort them alphabetically by locale code? It would be much easier to implement that way (no dependence on analytics data). Also, as a user I think it makes sense because I'd quickly will notice the sort is alphabetical rather than what can seem random.
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #7)
> (In reply to Kadir Topal [:atopal] from comment #6)
> > That list is changing constantly. How about using the wikipedia method and
> > listing them by their locale code? eg: de, fr, it, ja
> 
> Are you suggesting we sort them alphabetically by locale code? It would be
> much easier to implement that way (no dependence on analytics data). Also,
> as a user I think it makes sense because I'd quickly will notice the sort is
> alphabetical rather than what can seem random.

Any sorting method is fine with me. Alphabetical is good.
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #7)
> (In reply to Kadir Topal [:atopal] from comment #6)
> > That list is changing constantly. How about using the wikipedia method and
> > listing them by their locale code? eg: de, fr, it, ja
> 
> Are you suggesting we sort them alphabetically by locale code? It would be
> much easier to implement that way (no dependence on analytics data). Also,
> as a user I think it makes sense because I'd quickly will notice the sort is
> alphabetical rather than what can seem random.

Yes, let's go with that.
Just landed in prod.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.