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: |
Description
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:2 by , 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 , 13 years ago
By the way... I forgot that I added this feature, but for quick "testing" of pages, you can do: `http://omgmg.dyndns.org:6543/auth/login/?lang=eo <http://omgmg.dyndns.org:6543/auth/login/?lang=eo>`_ ?lang=lang\_code It won't stay persistent, but might help while debugging, or linking a specific page with a specific language.
comment:5 by , 12 years ago
Type: | defect → enhancement |
---|
comment:6 by , 12 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 , 11 years ago
Wikimedia Commons shows the language with ?uselang=, but keeps it between pages using something else (for a logged-out user).
comment:8 by , 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.