Alright, we're close to issuing this code in production for the Wikipedia
Zero end user use case.
Federico, you're right -
www.wikipedia.org/ gets a lot more traffic than
m.wikipedia.org/;
www.wikipedia.org/ skews more toward English, for several
reasons, but it still seems like wiring up a JavaScript widget to talk to
an API that examines the Accept-Languages, or something like that, might be
useful for multilingual users and users not reading a language listed
toward the top of the page. I'm currently pretty busy, but we could maybe
at least ask Mxn (if not on this list) what Mxn thinks, as Mxn has been
pretty involved with the global Wikipedia portal template. Should I BCC Mxn
on this thread, or email Mxn off-thread? Mxn tries to avoid spam from what
I can tell on Mxn's personal website.
-Adam
On Tue, Oct 28, 2014 at 2:28 PM, Federico Leva (Nemo) <nemowiki(a)gmail.com>
wrote:
Adam Baso, 28/10/2014 21:26:
Hi, just wanted to give people a heads up about
language-sensitive
redirects on the
m.wikipedia.org/ <http://m.wikipedia.org/> (and
zero.wikipedia.org/ <http://zero.wikipedia.org/>) webroot:
https://www.mediawiki.org/wiki/Wikipedia_Zero/Accept-
Language_Aware_Redirects
Dan Foy, Maryana, and I spoke on this stuff, and we thought it would be
best to see how this works in Wikipedia Zero land, and then if it works
well, continue dialog for the mobile web Wikipedia webroot afterward for
the non-Wikipedia Zero use case.
Usually we don't like to vary the cache on Accept-Language, but this is
one place where we're exploring the concept. It's possible to try to
figure out the language prefix in Varnish, but for now we're trying this
as a pure MediaWiki thing.
Cc mediawiki-i18n. As for MediaWiki, this is UniversalLanguageSelector
domain; outside MediaWiki, do note the project portals (<
https://meta.wikimedia.org/wiki/Project_portals>) sorely need to be made
language-aware at some point, and probably have several orders of
magnitudes more visitors than the "mdot webroots".
Nemo