Author: rui.hamilton.abreu
Description:
This request for enhancement results from a discussion with Hcatlin (see URL). There seems to exist a similar pending issue with chinese languages. Both can be resolved with more subdomains. The request can be stated thus:
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.
Note: According to Hcatlin, it does appear that one can tell what the user's UserLanguage is via javascript:
wgUserLanguage="pt-br", wgContentLanguage="pt",
but similar functionality (finding the user lang) seems to already be available in one of the extensions installed at www.translatewiki.net through <nowiki><tt>{{UILANGCODE}}
</tt></nowiki> (sorry, can't figure out which extension).
Version: unspecified
Severity: enhancement
URL: http://translatewiki.net/wiki/Thread:Support/Wikimedia_mobile_language_selection