I18n#1473: Use preferred language for anonymous users

Change-Id: I25833bb4c35453bbb055b4782d996604c93ef7db
This commit is contained in:
Niklas Laxström
2012-08-30 15:33:11 +00:00
committed by Gerrit Code Review
parent 47e852f2e5
commit b1fad2c1bb
2 changed files with 42 additions and 3 deletions

View File

@@ -56,6 +56,13 @@ $wgExtensionCredits['other'][] = array(
*/
$wgULSGeoService = 'http://freegeoip.net/json/';
/**
* Try to use preferred interface language for anonymous users.
* Do not use if you are caching anonymous page views without
* taking Accept-Language into account.
*/
$wgULSLanguageDetection = true;
$dir = __DIR__ ;
// Internationalization