Page MenuHomePhabricator

Replace setlang
Closed, ResolvedPublic

Description

Wikibase uses currently the URL parameter setlang in:

setlang is problematic because

  • setlang is suggested to deprecate by T111990.
  • setlang does not work for anonymous user.
  • signed-in user normally do not want to change their complete user interface language. They just want to see the content in an other language

I suggest the following alternative changes:

  • Drop the link entirely.
  • Replace setlang by uselang. This changes the user interface language only for a single click.
  • Replace the link to an URL by a call of the language change API of ULS. (mw.uls.changeLanguage)
  • Introduce a new content language which defaults to the user interface language and can set via user options, URL parameter.