Page MenuHomePhabricator

Support language variant selection at ULS
Open, MediumPublicFeature

Description

Current mockup:

ULS_with_variants_and_sorting.png (333×512 px, 21 KB)


Example mockup

Currently language variants are chosen using a tab next to "Read" and "Talk" (see http://zh.wikipedia.org/ as an example). It makes sense to integrate this feature with the rest of language settings and tools.

Here are some possible approaches:

  • Add variant selection to ULS settings. The Language settings can be extended to include variant selection for the current languages. This would work in a similar way to the fonts panel where you can adjust fonts for the language used (if UI and content languages are different, then you can adjust fonts for both).
  • Add variant selection to the list of languages. By adding variants at the top of the language list, there will be a single area for content language selection. Currently, content language selection is not supported by the ULS, and interlanguage links become quite long for some articles. If the ULS was used to facilitate content language selection (as illustrated at http://pauginer.github.io/prototype-uls/#lisa ) the initial list of links is keep short enough to be easily explored.

Since the current variant selection is in a very prominent position compared to the language list area, a link can be (temporally) left in the current position. But instead of opening the drop-down menu, it will direct users to the new place chosen for variant selection (e.g., opens the ULS with the "variants" view).

The attached mockup shows both approaches applied at the same time, but applying just one may be enough.


Description merged from T105122: Select language converter variant from ULS selector :

gom.wikipedia.org wants the users to be able to quickly switch between language converter variants when the language converter exists.
They think such a selection should happen together with interface language selection (ideally, via ULS).

Assigning to Pau until he tells us whether this was considered in the past.


Version: unspecified
Severity: enhancement

Attached:

variant-settings.png (385×768 px, 112 KB)

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:48 AM
bzimport set Reference to bz51242.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 13216
Updated variant support design

Source: https://commons.wikimedia.org/wiki/File:ULS_with_variants_and_sorting.png

attachment Schermafbeelding 2013-09-02 om 12.40.49.png ignored as obsolete

The content of attachment 13216 has been deleted by

Siebrand <s.mazeland@xs4all.nl>

who provided the following reason:

Wrong file

The token used to delete this attachment was generated at 2013-09-02 13:33:36 CEST.

Created attachment 13217
Updated variant support design

I uploaded the wrong file in the previous comment. Thanks to Liangent for spotting that.

Attached:

ULS_with_variants_and_sorting.png (333×512 px, 21 KB)

btw. In the "View this page in XXX" bar, we may want to do variant selection too.

More: &setvariant=zh-cn or &setvariant[zh]=zh-cn param?

fantasticfears wrote:

I think English should always appear right after the language selected.. Selection for interlink is also great.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.

Change 908717 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/extensions/UniversalLanguageSelector@master] UniversalLanguageSelector: Add content display language to language settings tab

https://gerrit.wikimedia.org/r/908717

Change 908717 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/extensions/UniversalLanguageSelector@master] UniversalLanguageSelector: Add language variant tab to display settings

https://gerrit.wikimedia.org/r/908717

If the corresponding resource loader modules are defined using packageFiles, you can use PHP callback to add any parameters needed.

update: Sorry, it doesn't know about the page context. So the variable still needs to be exported with the startup module.