Commit graph

53 commits

Author SHA1 Message Date
Translation updater bot 18e8e1c371 Localisation updates from https://translatewiki.net.
Change-Id: I779a9bf791dc74bf83341aa633608c70befdb715
2017-05-04 22:44:48 +02:00
Umherirrender 100da38e8f Add fix phpcbf command to composer.json
This allows to use the phpcbf easily

Change-Id: I159e3d6c0cb4d767d86036754e4943e59591d410
2017-04-29 13:09:14 +02:00
Translation updater bot b228828a3e Localisation updates from https://translatewiki.net.
Change-Id: Iea1b1fb8e466fb92900839aa3e2739d351cbbfdd
2017-04-27 22:34:50 +02:00
Umherirrender 1ee08cb2fe Fix bad newlines
Removed \r from files

Change-Id: Ic6b14cf06d2932ddf9d21093985aadd0d699c2f5
2017-04-22 18:44:51 +02:00
Translation updater bot 3a2551727d Localisation updates from https://translatewiki.net.
Change-Id: I985e91d1946cc32a139949fcd87f91b2ee451d8c
2017-04-15 10:45:34 +02:00
Translation updater bot 05cc856664 Localisation updates from https://translatewiki.net.
Change-Id: I103bbe4344bfc08c17fe8a018c1bb5c717f14aff
2017-04-10 22:46:20 +02:00
Translation updater bot 2457554529 Localisation updates from https://translatewiki.net.
Change-Id: Ie6d1a7043561bca9fe41e38086211d61ceeaea96
2017-03-29 22:27:46 +02:00
Umherirrender 168ea72d60 Use tabs to indent in json
Change-Id: I0a2056a0e1e1073a45752f1894f64c893126ff3e
2017-03-22 22:15:04 +01:00
Translation updater bot d04f141188 Localisation updates from https://translatewiki.net.
Change-Id: Ia6bda3cd5e25d58d66f8525cdf7c8960ec5875ed
2017-03-14 22:32:19 +01:00
Translation updater bot 565ef6684b Localisation updates from https://translatewiki.net.
Change-Id: I280ab867125a3a82eeb0478390d9cc73f816370e
2017-03-13 22:41:27 +01:00
Translation updater bot f0add690d4 Localisation updates from https://translatewiki.net.
Change-Id: I47e46731ab2b474e041d3446a80ef85f82ab11ec
2017-03-12 22:37:04 +01:00
Translation updater bot e3f486f727 Localisation updates from https://translatewiki.net.
Change-Id: Ia8312830f40b1465d7b88950e0d5f5d9a47141a0
2017-02-24 22:24:35 +01:00
Florian Schmidt 4a15a7fb83 Remove explicit font selection
We want to use the font of the page, not some different one.

Change-Id: Iaf8d6ce5e7422a4515fc9e8ab4f067e213609560
2017-01-12 01:42:26 +01:00
jenkins-bot 4b1a13d288 Merge "Redesign mobile CookieWarning banner" 2017-01-11 22:48:06 +00:00
Florian Schmidt 9b342e875b Redesign mobile CookieWarning banner
Based on design input from Reading web team (Nirzar).

Bug: T146077
Change-Id: I99aa74842486c4c397462dd51f55c272ae17ad07
2017-01-11 23:06:25 +01:00
Translation updater bot e0d823e293 Localisation updates from https://translatewiki.net.
Change-Id: I12177fc7487fbb27edafa2c12645e2d3f8b12574
2017-01-01 09:54:35 +01:00
Translation updater bot 0939066298 Localisation updates from https://translatewiki.net.
Change-Id: I8cee6f3b60b5a8b3ccb948c063d35a261310b244
2016-11-12 22:50:14 +01:00
Florian Schmidt 1143f1e20d Bump version number to 0.2.0
Bug: T145723
Change-Id: I4a3f57e7666bdca635dcd0603df9cef03011b7e4
2016-10-29 22:13:02 +02:00
jenkins-bot 7d0b29509e Merge "Add option to limit the cookie warning to specific regions" 2016-10-29 17:33:27 +00:00
Translation updater bot 595d03f687 Localisation updates from https://translatewiki.net.
Change-Id: Ie49dc8b191b8fcb3f1cea94dcf20e181161d7254
2016-10-28 22:39:00 +02:00
Chad Horohoe 1c824c4f09 Whoops, track not trace 2016-10-24 17:02:22 -07:00
Chad Horohoe 8e979282ea Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
2016-10-24 16:37:20 -07:00
Translation updater bot 150c9c9189 Localisation updates from https://translatewiki.net.
Change-Id: I38b9d0f008ff0c434171f32f4e6bd4e57b4e6b71
2016-10-19 23:25:11 +02:00
Translation updater bot 9e11cfeb92 Localisation updates from https://translatewiki.net.
Change-Id: I12ebd5e2a05ea61f751d3033cc9ee3e0027a1e78
2016-10-17 22:31:37 +02:00
Translation updater bot 2bcfb7389f Localisation updates from https://translatewiki.net.
Change-Id: I0b40c8faa679c2bf3d123645dd1b91ad851b2637
2016-10-15 23:01:20 +02:00
Translation updater bot 7fa4f6f2c4 Localisation updates from https://translatewiki.net.
Change-Id: I29eec9185d6dd30f4a3135c86b37d700ccd4c884
2016-10-13 22:47:18 +02:00
Florian Schmidt c35b78fae8 Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.

With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.

Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.

Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-10-07 23:51:18 +02:00
Translation updater bot 24d975ae79 Localisation updates from https://translatewiki.net.
Change-Id: Ic183f0a93ae83fcb9721684c25b82335b43ea98f
2016-10-02 10:36:54 +02:00
Translation updater bot 4c7a81639f Localisation updates from https://translatewiki.net.
Change-Id: I944da338f83b501b1ebd66ac1cd71aa055e71a8e
2016-09-27 22:35:58 +02:00
Translation updater bot 854e8ae43f Localisation updates from https://translatewiki.net.
Change-Id: Ia3ca0d7cd9a07fd1a344890ec22ce8e311c03b6b
2016-09-26 22:37:46 +02:00
Translation updater bot 02b5dd1a88 Localisation updates from https://translatewiki.net.
Change-Id: I8d0594f8d83513d63b87377b02b0c80ae91dddb7
2016-09-22 23:36:38 +02:00
Translation updater bot 86ed176f2b Localisation updates from https://translatewiki.net.
Change-Id: I4d2d65779fb46f242a4f62b94afb854f8b2a3fb5
2016-09-20 22:38:03 +02:00
Translation updater bot ce367f23fc Localisation updates from https://translatewiki.net.
Change-Id: I74aeafbb15ff901c0aa13ec2fb1016bc38eb1855
2016-09-19 22:53:21 +02:00
Florian Schmidt c0f1942eca build: Update to mediawiki-codesniffer 0.7.2
Change-Id: Iec8125948390b1bea87d25a4975450e8ba84fa0d
2016-09-17 22:42:15 +00:00
Florian Schmidt 12137c66d8 Use short array syntax instead of array()
Change-Id: I22f24bf047ff8bb476000bfbf879cc7612c10c27
2016-09-18 00:36:56 +02:00
jenkins-bot 45d70926ed Merge "Use the short hooks definition in extension.json" 2016-09-17 22:27:47 +00:00
jenkins-bot 5dfb430f40 Merge "i18n: Make the OK button label translateable" 2016-09-17 22:25:29 +00:00
Florian Schmidt ca00379814 Use the short hooks definition in extension.json
Change-Id: I53415a93290cd3fc973e384bfd66364b4dcf8206
2016-09-17 22:25:25 +00:00
Florian Schmidt a6d1e1f11a i18n: Make the OK button label translateable
Change-Id: Idb7cb249b582f0bf15f1ea6ec1d0aece5c9efdc5
2016-09-18 00:24:17 +02:00
Paladox 828d31625c Fix tests
Change-Id: I761c8eea6c0ecc55f02ce86259c5afc83d6a96a9
2016-09-18 00:18:56 +02:00
Florian Schmidt b8686223e5 Allow non-JS users to dismiss the CookieWarning bar
This commit change sthe "OK"-link to dismiss the cookiewarning bar
from a link to a POST-based form, so that non-JS users are able to
click it, too. If clicked, the dismiss is saved int he user prefs
(if the user is logged in) or in a cookie.

The JS version still works without reloading the page.

Bug: T145647
Change-Id: I711413abcbc131aaba34e8b285630ef1a1c9bda1
2016-09-18 00:00:14 +02:00
Florianschmidtwelzow 2b7bd1be97 Merge "Add the possibility to edit the more information link on-wiki" 2016-09-17 21:53:45 +00:00
Translation updater bot 3e266d9fe1 Localisation updates from https://translatewiki.net.
Change-Id: I78e7668e82f3e72c160a3a22792b5db741cde0a3
2016-09-17 23:17:58 +02:00
Florian Schmidt dcebb9bb04 Add the possibility to edit the more information link on-wiki
Instead of just the configuration variable $wgCookieWarningMoreUrl,
CookirWarning now allows also to set the link on-wiki using the interface
message MediaWiki:Cookiewarning-more-link. It also "listens" for the
MediaWiki:Cookie-policy-link interface message, which is introduced by
Cookie Policy as a first step for merging these both extensions.

Bug: T145781
Change-Id: I818008b2da6d9acd4295857e2916cd1b4637bee9
2016-09-15 23:53:27 +02:00
Translation updater bot cee786b695 Localisation updates from https://translatewiki.net.
Change-Id: I7eb180767e804657973fefc9d1d87f66c524f5e5
2016-09-15 22:59:01 +02:00
Christian Aistleitner 48260f3b53 Add .gitreview 2016-08-25 02:54:14 +02:00
Petr Urbanec db218cbf78 Added a Czech localization
Imported from https://github.com/droidwiki/droidwiki-extensions-CookieWarning/pull/1

Change-Id: Ibb19f450afb2a68573681bd9a2c7568d7e2bb5fd
Signed-off-by: Florian Schmidt <florian.schmidt.stargatewissen@gmail.com>
2016-08-22 22:48:21 +02:00
Florian 97c134e397 Improve documentation of code and add test features (npm, composer)
Also: Add license (MIT).

Change-Id: Ia184b396b648ecb4ef30b40d13618e2ecf72294a
2016-01-10 19:31:07 +01:00
Florian e37bbc73cc Change de-Message, adjust mobile less and add url config option
de i18n message now represents the en translation. The mobile opacity
is now 1, instead of 0.85 from desktop (it covers text in mobile, which
makes it harder to read with the opacity).

The URL isn't hardcoded anymore, it now can be configured with a config
option.

Change-Id: I9a4e3eb40675496e9467ecee4307298d0542633e
2015-08-16 12:00:33 +02:00
Florian bc100e294d Show CookieWarning for mobile users and save setting to user
Enable the CookieWarning to be visible on a mobile device (bottom, instead of top).

Instead of only rely on cookies to save, that a user accepted that we use cookies,
save it as a user preference, too.

Change-Id: Ib03d5eafd4392d14315115c158b547b9e26a173c
2015-08-16 11:49:05 +02:00