Page MenuHomePhabricator

Support display language change through ULS when global preferences are present
Closed, ResolvedPublic


Global preferences allow to set some properties (such as language) for all wikis, reducing the effort needed for users that use more than one wiki. In T196314, it was identified that for a user with a global preference for their language, ULS would fail silently if the user attempts to use it to change the language.

Based on the Global preferences APIs, we want to allow users to change the local language for the wiki while letting them know that changing it globally is possible.

If the user has not set the global preference for the display language, the ULS behaviour should be as usual.

If the user has previously set a global preference for a display language the following behaviour is expected:

  • Opening the ULS will show a display language the language currently applied to the UI, respecting the global preference and local overrides. Users can set their global preference for Spanish to be the display language except for German Wikipedia where english is preferred. In those cases, opening the ULS should show Spanish as the selected option for all wikis except German Wikipedia.
  • Changing the display language changes or creates a local override. changing the display language on the ULS should have only effect on the local wiki. If the selected language is different from the global preference, a local override will be created (or updated if it already exists).
  • Inform about the local scope of the change.After changing the language, a message will be shown to the user: "Language changed for this wiki. Check [your global preferences] to apply changes to all wikis.". A bubble notification will be used and the link will point to Special:GlobalPreferences. This message will replace the usual message that is shown after changing the language (i.e., depending on whether global preferences are used, one or the other message will be shown, but not both).

The mockups below illustrate the interaction:

global-changes-uls.png (573×1 px, 333 KB)
global-changes-notification.png (573×1 px, 479 KB)

Related ticket: T196314: UniversalLanguageSelector doesn't work if language is set globally in global preferences

Event Timeline

Pginer-WMF renamed this task from Design ULS behaviour when global preferences are present to Support display language change through ULS when global preferences are present.Jul 24 2018, 1:00 PM
Pginer-WMF removed Pginer-WMF as the assignee of this task.
Pginer-WMF removed a project: Design.
Pginer-WMF updated the task description. (Show Details)
Pginer-WMF updated the task description. (Show Details)

Change 452627 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/UniversalLanguageSelector@master] Support UI language change when global preferences are present

Change 452627 merged by jenkins-bot:
[mediawiki/extensions/UniversalLanguageSelector@master] Support UI language change when global preferences are present