[go: up one dir, main page]

Page MenuHomePhabricator

setlang doesn't seem to work on MobileFrontend
Open, Needs TriagePublic

Description

I tried to use the ?setlang= URL parameter in the Incubator to set a language. It worked on the desktop, for example using the URL https://incubator.wikimedia.org/wiki/Wp/kcg?setlang=kcg .

But it doesn't seem to work on mobile, with the URL https://incubator.m.wikimedia.org/wiki/Wp/kcg?setlang=kcg . Nothing happens, and I stay with the same language.

It's possible to go to the desktop mode, go to preferences, and select the language, but given the increasing number of mobile-only users, it would be nice to be able to do it without this workaround. In particular, I encountered people who use several languages that already have their MediaWiki localization working, but still don't have their own Wikipedia domain. For them, it would be useful to see the localization working in the Incubator, but to make it work, they apparently have to go through preferences in the desktop mode. It would be great to do it completely in the mobile web mode.

I'm not sure whether the problem is in ULS, MobileFrontend, or Core, so tagging all of them.

Event Timeline

setlang is somewhat deprecated due to technical reasons, see e.g. T46649: Language change should use POST, so it would be better to explore alternatives. The confirmation dialog resource loader module is probably not marked to be compatible with mobile version.

I stumbled across this while searching for something else: Moderator tools is working on T308651: Make Special:Preferences available to mobile web users. At the moment, what we have is only shown to users with amc enabled, but our plan is to make it available to everybody after we work out the kinks. You can currently do this on incubator.

I just stumbled across this task just now by accident.

For the Incubator, I made this gadget last year in order to enable setlang on mobile there (setlang is important functionality in the Incubator), so the example URL linked in the description now works, but that's because of said gadget.

An example that still doesn't work is this on Commons: https://commons.m.wikimedia.org/wiki/?setlang=kge