Commit graph

3249 commits

Author SHA1 Message Date
Translation updater bot 8b1ed94376 Localisation updates from https://translatewiki.net.
Change-Id: If463eb6c1933050789deda99e6efbedf32fcd194
2015-04-19 21:27:02 +02:00
Translation updater bot 3b9d915db5 Localisation updates from https://translatewiki.net.
Change-Id: I5a490224b231dcc8287f5ef3b72d960fef1e3e25
2015-04-15 23:44:17 +02:00
jenkins-bot 3d5c2def1f Merge "Rework color definitions in LESS" 2015-04-14 22:00:15 +00:00
jenkins-bot dc81d94b6f Merge "Collect only 25% of WikiEditor events" 2015-04-14 21:46:34 +00:00
Fomafix 465d411536 Rework color definitions in LESS
* Use #rgb instead of #rrggbb where possible.
* Use lower case letters.

Change-Id: I390bf23d44bc2d78eb1d2185fd89b94297d1f05f
2015-04-14 21:39:04 +00:00
jenkins-bot 4850e6cefa Merge "Try to unbreak WikiEditor modules" 2015-04-14 21:32:05 +00:00
Alex Monk d317164aeb Collect only 25% of WikiEditor events
By checking the first character of our session ID (which is just a random
hex digit)

Bug: T93201
Change-Id: If1f7e7c4da6c3f37533a6feba56ff6422f5b9750
2015-04-14 11:48:25 +01:00
Translation updater bot a4e7c8dbb4 Localisation updates from https://translatewiki.net.
Change-Id: I7f5169a3ea8301b76d48b7bf5e2c87d9e9bb2c5c
2015-04-13 22:37:08 +02:00
Translation updater bot 6d93515751 Localisation updates from https://translatewiki.net.
Change-Id: I314e555cd099e2768163fad088ef9c1ca283c659
2015-04-12 21:59:11 +02:00
Translation updater bot 0feeb1ef83 Localisation updates from https://translatewiki.net.
Change-Id: I550046367e68cddadd327b472f85dc1a82270c66
2015-04-11 21:35:18 +02:00
Translation updater bot 87b715cd2c Localisation updates from https://translatewiki.net.
Change-Id: I01ad28d8160f7559e0d63352850d91c3f40d19fb
2015-04-09 19:36:23 +02:00
Translation updater bot 9e6f6c8d96 Localisation updates from https://translatewiki.net.
Change-Id: I7128e1788bd034ee8003ccb49a8e993c7d866b95
2015-04-07 22:21:47 +02:00
Alex Monk 596a790d00 Try to unbreak WikiEditor modules
Some very weird issues going on involving multiple wikiEditor instances being
set up on the same textarea element. It's probably a race condition of some
sort and I'm hoping that restoring the modules like this will fix it.

Bug: T93384
Change-Id: I44c9c013993220ab709893d239614552d7b25d46
2015-04-07 19:51:58 +01:00
Translation updater bot b23d2ec081 Localisation updates from https://translatewiki.net.
Change-Id: Iaca5b69006ca1358dd1b2137fd72b8e5f31f321e
2015-04-06 21:52:16 +02:00
Timo Tijhof 8e78850a3a Don't force a separate http request for ext.wikiEditor.init
Follows-up 74da530f2, which introduced a separate HTTP request
on all pages just for the 665 bytes (compressed) of ext.wikiEditor.init.

Have it join the main load queue instead.

Change-Id: I9e0ce994e632c64f3c781f45ea44582c0a943c65
2015-03-31 20:24:06 +00:00
Translation updater bot 64bdcf3c40 Localisation updates from https://translatewiki.net.
Change-Id: Ia5c5ff99d63953180dabd4fd2d18d429b60e34f5
2015-03-31 21:50:03 +02:00
Translation updater bot 17c6c8c422 Localisation updates from https://translatewiki.net.
Change-Id: I236fa23864a9c822534a5d9abdbe01c0f2850bcc
2015-03-30 21:50:48 +02:00
jenkins-bot d3b0ef6c27 Merge "Escape messages" 2015-03-30 16:40:10 +00:00
Translation updater bot 906a79d05f Localisation updates from https://translatewiki.net.
Change-Id: Id5ce5b5bac4d9096ce21249448f686a4efb52b01
2015-03-29 15:12:41 +02:00
Fomafix 539dabeeed Escape messages
* Use .text() instead of .append() to add a text.
* Integrate only once used variables.

Change-Id: I62cd1a402fc44d90e746ec79e96a13aa49e7f926
2015-03-28 23:42:47 +00:00
Alex Monk fb4f71a46b Move WikiEditor's special character data and messages out to core
Core part done in If9c5cdbe

Bug: T91608
Change-Id: Ifd0ed245ca9d1209b3dad5334f3fcfca428ceeec
2015-03-27 22:46:24 +00:00
Kunal Mehta 05545443d3 Use __DIR__
Change-Id: I20b054c9e0ddf4ccbafb7642a04c315e18d2b8d4
2015-03-25 16:23:36 -07:00
jenkins-bot 3c5bb84131 Merge "Remove unused code, pass phpcs" 2015-03-25 22:43:31 +00:00
Kunal Mehta 7466b7414d Add extension.json
Bug: T87993
Change-Id: Ib58cd4425bef52971c577f41f96fb0ea425d2e7d
2015-03-25 22:42:30 +00:00
Kunal Mehta 59e7d9546f Remove unused code, pass phpcs
* No features have a 'configurations' setting, nor can I see any
client-side code looking for any. Was triggering phpcs because of
the 'global $$configuration;' line, which didn't start with "$wg".
* Remove unused selenium tests that were also triggering phpcs.
* Add composer.lock and vendor/ to .gitignore

Change-Id: If06a08b6a7c232ac69f9dff569ffa3e1c93ff0c5
2015-03-25 15:27:10 -07:00
Translation updater bot 3b5978a7e2 Localisation updates from https://translatewiki.net.
Change-Id: I351a2eb684caf5b86c90d726ae24b00df93fd128
2015-03-25 22:22:14 +01:00
Translation updater bot c8571a001a Localisation updates from https://translatewiki.net.
Change-Id: If40689d1f9c1370481cb97cea1bad766dca97ee0
2015-03-24 22:36:19 +01:00
Translation updater bot 2e22dcf9bb Localisation updates from https://translatewiki.net.
Change-Id: If66590c28879017ce0644765a8a57b4983832ab4
2015-03-23 22:13:34 +01:00
Translation updater bot 4799f3a608 Localisation updates from https://translatewiki.net.
Change-Id: I7b77fa08e0dc1a8436df1eb76f381fc8e2e9704e
2015-03-22 21:21:33 +01:00
Translation updater bot 739b71785d Localisation updates from https://translatewiki.net.
Change-Id: I15ebc659ebfa0dc0d126f66774ca7a831028320d
2015-03-20 21:38:57 +01:00
Alex Monk 2b914eeddf Don't try to do event logging if we don't have a stats ID
I found that pages like:
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Strona_g%C5%82%C3%B3wna&action=edit
which load WE dynamically don't have this.

Change-Id: Ib3952f4efbf265dbb0d1e25b2059e1be934565a7
2015-03-20 01:26:31 +00:00
Alex Monk bf15f72dc7 Try to prevent crazy EventLogging entries with no session ID etc.
Seems to be causing errors on view (!) on plwiki, and I would not expect this
to work on non-wikitext pages.

Bug: T93242
Change-Id: I0336a85a2ab4bef1d20086382012047688ffa909
2015-03-19 21:29:57 +00:00
jenkins-bot 262a2b22d7 Merge "Only do client-side instrumentation on action=edit/action=submit" 2015-03-19 21:29:16 +00:00
Translation updater bot 0953d69223 Localisation updates from https://translatewiki.net.
Change-Id: Ic24ba9100a40ff787d8a7ecda362b6f692e4090b
2015-03-19 21:18:13 +01:00
Alex Monk 4d54fa4471 Only do client-side instrumentation on action=edit/action=submit
So we don't break the tests

Bug: T93119
Change-Id: Ib0545f581fd2a845b893a046ab7aa7161e27180e
2015-03-18 23:59:24 +00:00
Alex Monk e19968d4e1 Fix WebRequest::getVal calls for instrumentation
As it actually defaults to either null or (string)$default, not $default.
So therefore getVal( 'key', false ) will never return false, even if 'key' is
not set.

Change-Id: Ibe6beae9d2c4a19ff59d1035564f17373298529d
2015-03-18 19:40:30 +00:00
Translation updater bot 9d2092b25c Localisation updates from https://translatewiki.net.
Change-Id: I36bc6f77f65ddfb313f8612bdfbb22555d064aae
2015-03-18 16:09:23 +01:00
Translation updater bot 1ab97a76c0 Localisation updates from https://translatewiki.net.
Change-Id: I9ad9ed728f4232854bf83eacf9e02ddd0420d74b
2015-03-16 22:02:01 +01:00
jenkins-bot 49524147a8 Merge "Insert link: trim whitespace from the external link" 2015-03-16 10:59:28 +00:00
Kunal Mehta 11781784de Revert making installable via composer (and add composer test entry point)
This reverts b8abb9b5f2 (a self-merged "experiment") and
1bb0ea4f76 (Convert entry point to use explicit globals).

The maintainers of this extension do not plan on supporting installation
via composer. This functionality was never included in a stable release
branch, and should not break anyone sticking to stable
branches.

Once merged, I can remove the package from packagist.org

The composer.json is now used to add a "composer test" entry point to run
PHPCS, which this extension badly needs.

Change-Id: I2f3db6addd883d94366a696d5185bf05b2695b11
2015-03-15 18:01:50 -07:00
Derk-Jan Hartman 1514d166e0 Insert link: trim whitespace from the external link
Bug: T25499
Change-Id: I2392ade17d3d4428784c40dabf9ae5e216fbab47
2015-03-16 00:16:13 +01:00
Translation updater bot 2c3fe04ce1 Localisation updates from https://translatewiki.net.
Change-Id: I9b60dacf88bd700e5c46ff98597d27ee66e486fc
2015-03-15 21:54:59 +01:00
jenkins-bot 789bb7c7d3 Merge "Move hardcoded parsed thumbnail html from i18n to config" 2015-03-15 11:32:29 +00:00
Translation updater bot 0bc60008e8 Localisation updates from https://translatewiki.net.
Change-Id: Id0c176f18078629d6c9a7162c3393fbfceff360d
2015-03-14 21:38:29 +01:00
Fomafix 5c36a20623 Move hardcoded parsed thumbnail html from i18n to config
Also update the actual HTML with what the current parser outputs:
* width:104px -> width:102px (2px in addition to 100px image width)
* No more "title" attribute on the outer <a>.

And reduce duplication in the message:
* Re-use "thumbnail-more" message.
* Re-use "wikieditor-toolbar-help-content-file-caption" message.

Change-Id: I25f0763b2274ebdcf681c78af277a9be302350a1
2015-03-14 20:41:11 +01:00
Fomafix a42f39dd7f Replace 104px by 102px for width of thumbnail div
[[File:Example.png|thumb|100px]]
generates a surrounding div with a width of 102px.

Change-Id: Ie2eb46452de607b83abb5f61af5782dedbf7aa84
2015-03-14 18:19:30 +00:00
Tiziano Müller 51f3d145bc Reformat the license warning only if available
If the WikiEditor is enabled for Semantic Forms Text Area Input there is
no license warning div around.

Change-Id: I8d39f8d47a73cdc2d4be198061e8f68f22c0c308
2015-03-14 18:10:52 +00:00
Fomafix 83c079ceb6 Reuse variable profile instead of $.client.profile()
Change-Id: I66543bd0838b062bea08ca4b5f4fded41ff835cc
2015-03-14 18:01:58 +00:00
Fomafix d16dfb0ad5 Style code
* Fix errors and warnings from phpcs.
* Add commas at end of lines for arrays in PHP.
* Add space between // and comment.
* Add space between ) and {.
* Use tabs instead of spaces for indenting.
* Break lines in PHP with more than 100 characters.
* Remove double spaces and spaces at end of line.
* Remove spaces before comma.
* Fix some typos.

Change-Id: I9c014bdfa9832fa6a20d0190fe2fc668983d0fb9
2015-03-14 15:49:04 +00:00
Translation updater bot f691fbb8f2 Merge "Localisation updates from https://translatewiki.net." 2015-03-14 07:39:06 +00:00