Wikimedia mobile language selection

Wikimedia mobile language selection

http://pt.m.wikipedia.org/ seems to have the pt-br language translations. And http://pt-br.m.wikipedia.org/ does not exist. What can I do to get this fixed?

Hamilton Abreu02:49, 28 November 2009

Has User:Hcatlin been contacted?

Nike10:10, 8 December 2009
 

Siebrand moved the issue to Hcatlin's discussion page, but no response yet. Should I try contact in some other way?

Hamilton Abreu22:31, 8 December 2009
 

The *articles* are in pt-br or the translations?

How is this setup of wikipedia proper? What is pt.wikipedia.org?

I mean, I didn't do anything special. pt.m.wikipedia.org should be scraping pt.wikipedia.org, and it should be loading the "pt" translation strings from this site.

But, I need much more info before I can figure this out.

Hcatlin09:08, 9 December 2009
 

Hi Hcatlin, sorry if I wasn't clear.

I was referring to the button names and the copyright and other messages at the bottom of the page, *not* to the articles.

In MediaWiki's interface, there are two variants of portuguese: Portuguese (pt) and Portuguese (Brazil) (pt-br). Users can set their MediaWiki interface language to the most appropriate.

In Wikipedia proper, there is a single Wikipedia for the portuguese language, so the articles are in a mix of pt and pt-br.

Now, it's not clear to me from pt.m.wikipedia.org how users would go about setting the interface language, but I guess it results from the URL they access.

If that is so, in principle, "pt" users (i.e. those who set their interface language in MediaWiki to "pt") should access pt.m.wikipedia.org and get the "pt" buttons and messages and the articles from pt.wikipedia.org.

The "pt-br" users should access pt-br.m.wikipedia.org and get the "pt-br" buttons and messages and the articles from the same pt.wikipedia.org.

If we direct users to the mobile version of wikipedia from within wikipedia itself, then users who have set their interface language to "pt" would be directed to pt.m.wikipedia.org and those that set their interface language to "pt-br" would be directed to pt-br.m.wikipedia.org. If we are unable to examine the interface language and direct users to the appropriate one, then both links should be presented: pt.m.wikipedia.org and pt-br.m.wikipedia.org and let users choose the appropriate one.

Hamilton Abreu12:31, 9 December 2009
 

I have a similar pending issue like this with chinese languages. They share the same wikipedia and have different language selectors. Currently, the mobile site doesn't really think about an interface language... but I'm definitely willing to figure out a way to make that work well.

I think you are right... more subdomains makes it easier.

If you wouldn't mind opening a Bugzilla ticket stating what you just said, I'd really appreciate it. It does appear that you can tell what their UserLanguage is via javascript:

wgUserLanguage="pt-br", wgContentLanguage="pt",

Hcatlin12:44, 9 December 2009
 

bugzilla: 21806 created. Regarding how to figure out the UserLanguage, this functionality is already available in translatewiki.net through {{UILANGCODE}} (I believe it's implemented by one of the extensions there).

Hamilton Abreu13:30, 9 December 2009