Page MenuHomePhabricator

Make MediaWiki:Sharedupload point to Commons with lang setting of that wiki
Open, LowPublicFeature

Description

Author: brianna.laugher

Description:
MediaWiki:Sharedupload appears on 'fake' image pages at local wikis, where the image is actually hosted at Commons rather than the local wiki. Most wikis that use this message include a link to the Commons image page similar to this:

[[Commons:Image:{{PAGENAMEE}}|description page there]]

A user from is.wikipedia change the link on that project like this:

[{{fullurl:commons:Image:{{PAGENAME}}|uselang=is}} description page there]

This means when the Icelandic reader clicks on the link, they get the Commons interface in Icelandic.

This seems like a reasonable change, to me, to make on all Wikimedia wikis. Although if the user clicks another link on Commons, the interface will 'jump back' to English, at least it is better than nothing.

Possibly when SUL comes, this will be irrelevant. I am not sure if language preference settings will 'carry over'.


Version: unspecified
Severity: enhancement
Whiteboard: UniversalLanguageSelector-fixed
See Also:
T69544: When linking to commons from mediaviewer, current user language should be passed in ?uselang=XX parameter
T58464: Allow anonymous users to change interface language on Wikimedia wikis with ULS
T5665: Auto-detect interface language for anonymous users on Wikimedia projects

Details

Reference
bz10827

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:53 PM
bzimport set Reference to bz10827.
bzimport added a subscriber: Unknown Object (MLST).

steinninn wrote:

I got the idea from jp.wikipedia. And I suggested this on de: and fr: where they quickly and happily made the change. The problem is, when I am on fr: and click on an image the link overwrites my settings for an Icelandic Commons page. This quickly changes when I go to the next page. Still, better then nothing.

Note: doing [{{fullurl:commons:Image:{{PAGENAME}}|uselang={{CONTENTLANG}}}} description page there] should work on all wikis.


This is an interesting idea, and perhaps should be done with instant commons too. (and the url is generated per view, so we could probably do this with userlang instead of contentlang)

Downside:
*Would cause anons to bypass some caches. I don't think there's enough traffic off those links to really make a significant difference.
*As mentioned above, if user logged in on commons, may override their prefs. but minor issue. Even less if we use userlang

the interface will 'jump back' to English,

I think commons has fancy js to prevent that.

(In reply to comment #2)

This is an interesting idea, and perhaps should be done with instant commons
too. (and the url is generated per view, so we could probably do this with
userlang instead of contentlang)

Yes, it should. The additional advantage of doing it MediaWiki side would be precisely to use userlang. This would have been more useful 5 years ago, because the UniversalLanguageSelector will make it less useful on Commons in the next few months/years, but it should still be a good idea for the meanwhile and for wikis using another shared repository.

I'm not that familar with ULS - but I assume it still requires the user to select a language. In that case passing on the current language still sounds useful.

This has a "UniversalLanguageSelector-fixed" whiteboard entry, which makes me wonder what's specifically left to do here now that ULS is deployed...
Anyone knows? Nemo? :-/

(In reply to Andre Klapper from comment #5)

This has a "UniversalLanguageSelector-fixed" whiteboard entry, which makes
me wonder what's specifically left to do here now that ULS is deployed...

This bug would be superseded only if bug 13097 / bug 1135 was fixed. ULS is not yet enabled for unregistered users and there are no plans to complete that work in the next year(s).

Also to be noted:

(from comment #0)

Possibly when SUL comes, this will be irrelevant. I am not sure if language
preference settings will 'carry over'.

There are no plans for this either.

(In reply to Bawolff (Brian Wolff) from comment #2)

This is an interesting idea, and perhaps should be done with instant commons
too.

Indeed. Moved to core, where it's even more useful because third party wikis have no SUL. :)

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: Fabrice_Florin.