Page MenuHomePhabricator

When linking to commons from mediaviewer, current user language should be passed in ?uselang=XX parameter
Open, LowPublic

Description

de.wikipedia.org (Langsettings: de) should be redirect to the german version of Commons (&uselang=de)
it.wikipedia.org (Langsettings: it) should be redirect to the italian version of Commons (uselang=en)
ar.wikipedia.org (Langsettings: ar) should be redirect to the ar version of Commons (&uselang=ar)
etc.


Version: master
Severity: normal
See Also:

Details

Reference
bz67544

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:35 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz67544.
bzimport added a subscriber: Unknown Object (MLST).

If that's a good thing, it should be used in the normal file page link as well, not just MediaViewer.

The big drawback is that the language would revert back as soon as the user follows some link, which would be very confusing.

I think ULS supported a setlang parameter at some point, which would be more suitable for this, but dropped support at some point.

CCing Siebrand for guidance.

Gilles subscribed.

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.

Mentionned on the frwiki “bistro” yesterday: topic “Anglais imposé : pourquoi pas la version française de Commons et Wikidata ?”.

A non-logged-in user complaints that he should land on a French page when following a link on the French wikipedia (not explicitely mentionning the MMV, but it is mentionned in the following messages).

In T69544#731784, @Tgr wrote:

I think ULS supported a setlang parameter at some point, which would be more suitable for this, but dropped support at some point.

Setlang is supported but only for logged-in users (T58464) and the current behavior is a bit confusing (T46649). Also permanently changing the language might not be what the user would prefer, but non-permanently changing it is confusing as it will revert back to English as soon as the user does any kind of navigation.

Tgr set Security to None.