Opened 13 years ago

Last modified 11 years ago

#247 accepted enhancement

Add a language selector

Reported by: Aleksej Owned by:
Priority: minor Milestone:
Component: programming Keywords:
Cc: Parent Tickets:


Please add a way to change UI language, overriding Accept-Language.
E.g. a drop-down and/or an URL piece.

Change History (8)

comment:1 by Christopher Allan Webber, 13 years ago

It's hard to think of a good place to put this. But one easy place
for now is in user preferences. Yes, it requires you to be logged
in. But at least it's one option besides browser defaults until/if
someone finds a nicer place UI-wise for it to be. And we should
have user-level preference on language settings anyway.

comment:2 by Christopher Allan Webber, 13 years ago

Jef, do you think adding a language dropdown in the user profile
editor would be an appropriate solution for now?

comment:3 by Christopher Allan Webber, 13 years ago

By the way... I forgot that I added this feature, but for quick
"testing" of pages, you can do:

` <>`_


It won't stay persistent, but might help while debugging, or
linking a specific page with a specific language.

comment:4 by Will Kahn-Greene, 12 years ago

The original url for this bug was .

comment:5 by Aleksej, 12 years ago

Type: defectenhancement

comment:6 by spaetz, 11 years ago

Hi, the backend work for this is all in. We will display languages in this order:

1) ?lang=ru parameter (either GET or POST)
2) use the "target_lang" variable in the session object (which is never set so far)
3) based on browser preference

So we clearly need to improve case 2), so that a user can set a preferred language in her account settings.

comment:7 by Aleksej, 11 years ago

Wikimedia Commons shows the language with ?uselang=, but keeps it between pages using something else (for a logged-out user).

Last edited 11 years ago by Aleksej (previous) (diff)

comment:8 by Emily O'Leary, 11 years ago

Having a language preference for logged in users would be really helpful for making sure that any communications sent to those users are in their preferred language (see #504). I could see this have both of those implementations.

Adding it as a field for when someone registers would also be helpful.

Note: See TracTickets for help on using tickets.