Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Although you can use IP-based location detection (see <a href="https://stackoverflow.com/a/9143618/2016778">this answer</a>), but it's neither reliable nor makes you wiser about user's preferred languages (e.g. users travelling abroad, etc.). </p> <p>Websites with heavy international traffic use various parameters to decide in which language the content should be presented. Some of these parameters:</p> <ul> <li><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4" rel="nofollow noreferrer"><code>Accept-Language</code></a> HTTP header which is discussed in detail <a href="https://stackoverflow.com/a/3335420/2016778">here</a>.</li> <li>Values of properties <code>window.navigator.language</code> or <code>window.navigator.userLanguage</code> (for IE)</li> <li>IP-based location detection data checked against CLDR to provide you with common languages in that territory.</li> </ul> <p>MediaWiki extension, <code>UniversalLanguageSelector</code>, uses these factors as well as stored user preferences to provide a list of common languages for each user. See <a href="https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/UniversalLanguageSelector.git;a=blob;f=resources/js/ext.uls.init.js;h=b449c7a5f5c3e236a3688f0c822a0735282039e0;hb=HEAD#l73" rel="nofollow noreferrer"><code>getFrequentLanguageList()</code></a>.</p> <p>W3C also has some <a href="http://www.w3.org/International/questions/qa-when-lang-neg" rel="nofollow noreferrer">recommendations</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload