Switch default ULS geoip provider

Current provider is going away. Switching to another free provider.
Implemented caching with a cookie for speed and to avoid generating
unnecessary load on the service.

Bug: T143542
Change-Id: I191d69a6fb8abe9556f475dfef1368dc9f96b846
This commit is contained in:
Niklas Laxström
2016-08-22 12:31:35 +02:00
committed by Amire80
parent f53806a965
commit 4cd1def0f3
3 changed files with 32 additions and 26 deletions

View File

@@ -55,7 +55,7 @@
"compact-language-links": true
},
"config": {
"@ULSGeoService": "ULS can use geolocation services to suggest languages based on the country the user is vising from. Setting this to false will prevent builtin geolocation from being used. You can provide your own geolocation by setting window.Geo to object which has key \"country_code\" or \"country\". If set to true, it will query Wikimedia's geoip service. The service should return jsonp that uses the supplied callback parameter.",
"@ULSGeoService": "ULS can use a geolocation service to suggest languages based on the country the user is vising from. If set to true, it will query a free geoip service. Setting this to false will prevent built-in geolocation from being used. You can provide your own geolocation by setting window.Geo to an object which has key \"country_code\" or \"country\".",
"ULSGeoService": true,
"@ULSEnable": "Enable language selection, compact language links, input methods and webfonts for everyone, unless the behavior is overridden by the configuration variables below. Even if false the classes and resource loader modules are registered for the use of other extensions. Language changing via cookie or setlang query parameter is not possible.",
"ULSEnable": true,
@@ -129,6 +129,10 @@
},
"ext.uls.geoclient": {
"scripts": "js/ext.uls.geoclient.js",
"dependencies": [
"json",
"mediawiki.cookie"
],
"localBasePath": "resources",
"remoteExtPath": "UniversalLanguageSelector/resources"
},