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.
bzimport set Reference to bz67544.
bzimport added a subscriber: Unknown Object (MLST).
Tgr added a comment.Jul 7 2014, 1:19 AM

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 triaged this task as Low priority.Nov 24 2014, 2:39 PM
Gilles added a subscriber: Gilles.
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:10 PM
Restricted Application added subscribers: Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:10 PM

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

Ltrlg added a subscriber: Ltrlg.Jan 18 2016, 9:33 AM
Ltrlg added a comment.EditedJan 18 2016, 9:37 AM

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).

Tgr added a comment.Jan 18 2016, 6:08 PM
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 updated the task description. (Show Details)Jan 18 2016, 6:08 PM
Tgr set Security to None.