Commit graph

768 commits

Author SHA1 Message Date
Translation updater bot 4d145240be Localisation updates from https://translatewiki.net.
Change-Id: Ib6bdc7a82b946f5954d5a5be928ab47b0b5b7b47
2023-01-31 07:26:53 +01:00
Translation updater bot e04cebaafc Localisation updates from https://translatewiki.net.
Change-Id: Id290befc88af3f2ec17d31515557dbae345688c8
2023-01-24 07:14:45 +01:00
Translation updater bot 9ef9eaa2f7 Localisation updates from https://translatewiki.net.
Change-Id: I9f9aacdba082d342244b92582ceaa972ced12d08
2023-01-03 07:45:11 +01:00
Translation updater bot ec6ffdbbb5 Localisation updates from https://translatewiki.net.
Change-Id: Ic3f9b6dbb37da9c62fd5fc7dc83a4e1c043bf7c9
2022-12-27 07:09:53 +01:00
Translation updater bot 82766a296d Localisation updates from https://translatewiki.net.
Change-Id: I6b2ca54bd404a811cba40305f75c6b0d34fc3e40
2022-12-20 07:55:38 +01:00
Translation updater bot 736f06359b Localisation updates from https://translatewiki.net.
Change-Id: I1c8b1942daa4070dcc425004f571feedd952b3ac
2022-12-13 07:28:14 +01:00
Translation updater bot 63c49fad02 Localisation updates from https://translatewiki.net.
Change-Id: Ifbe299e02ccf25f45b4bbd5c47731575ba4ec757
2022-12-08 07:41:07 +01:00
Translation updater bot 8c188ce34a Localisation updates from https://translatewiki.net.
Change-Id: I429d7c0618b7dbd685489286ceec4432de12d3cb
2022-12-01 07:19:06 +01:00
Translation updater bot 4d6c0126c3 Localisation updates from https://translatewiki.net.
Change-Id: I565707af00bdb35e09fb1dfc1c68d483e0de38f9
2022-11-24 07:07:51 +01:00
Translation updater bot 1c97b5cb63 Localisation updates from https://translatewiki.net.
Change-Id: Iae915111fc7269abd5ac8b383c4d7ad9025c188c
2022-11-17 07:17:53 +01:00
Translation updater bot 89407bb6f4 Localisation updates from https://translatewiki.net.
Change-Id: Iffd5d95ddb20bc7dc906f773e97a4e63959632cf
2022-11-10 07:20:15 +01:00
Translation updater bot a9cf07275d Localisation updates from https://translatewiki.net.
Change-Id: I28599731e59bc9c1673cb99d2f00677529fc20d3
2022-10-27 08:01:50 +02:00
Translation updater bot bd2281ff76 Localisation updates from https://translatewiki.net.
Change-Id: I2f28082f135b842d02eafd2c5028dcd374980f90
2022-10-20 07:35:47 +02:00
Translation updater bot 3da3af1951 Localisation updates from https://translatewiki.net.
Change-Id: I3038172f321668e901f40616a89d277c78e6b33b
2022-10-13 07:22:08 +02:00
Translation updater bot 1aa6072707 Localisation updates from https://translatewiki.net.
Change-Id: I7518b994fe0076409df56cf3dc7c964e553d9c90
2022-10-06 07:11:50 +02:00
Translation updater bot e602c415ff Localisation updates from https://translatewiki.net.
Change-Id: If6f4a1bbd1b7be31eda22af37ab271e9d13efed3
2022-09-29 07:13:02 +02:00
Translation updater bot 9d4eabe7a5 Localisation updates from https://translatewiki.net.
Change-Id: I7c87e91e19d4ec473fbe12bc108ef9e7a13c4759
2022-09-22 16:17:34 +02:00
Translation updater bot 9a55cfbb25 Localisation updates from https://translatewiki.net.
Change-Id: Ia3081aa97003388d023ea018ae3f67523c9b99c7
2022-09-05 10:10:50 +02:00
Translation updater bot 08dff80114 Localisation updates from https://translatewiki.net.
Change-Id: I49d472acf894caf5cfc5ce3dfc59afdef8facfc4
2022-08-31 09:35:10 +02:00
Translation updater bot 14a31b76fe Localisation updates from https://translatewiki.net.
Change-Id: Ied0579e65399b18160f8fe06e4be3459bae816ea
2022-08-29 09:14:14 +02:00
Translation updater bot 777a1303a8 Localisation updates from https://translatewiki.net.
Change-Id: Ibc38725991ec85a558683ff065881d733ccc4de5
2022-08-26 08:22:48 +02:00
Translation updater bot d370e9c8b9 Localisation updates from https://translatewiki.net.
Change-Id: I4b378e85a9232bb3c7d4ac0c57cd0a3a3b6da545
2022-08-19 08:29:32 +02:00
Translation updater bot 185b248900 Localisation updates from https://translatewiki.net.
Change-Id: Ie4100a055cf73da9f58bf1d1f3b8341f1847cd9f
2022-08-09 08:19:42 +02:00
Translation updater bot 04ab1daf12 Localisation updates from https://translatewiki.net.
Change-Id: I7db4bbbdf7f4db299b13daa553c8d3b30515d3fa
2022-08-08 08:58:38 +02:00
Translation updater bot 759775bb45 Localisation updates from https://translatewiki.net.
Change-Id: Ia5d177e684794294051dbdc1cec57da84a003aa4
2022-08-04 08:42:48 +02:00
Translation updater bot 17cfa8d56f Localisation updates from https://translatewiki.net.
Change-Id: I0e419c9e153ec02ed4ea87d0e583f0105652bfb0
2022-07-29 08:53:09 +02:00
Translation updater bot c198fc8d46 Localisation updates from https://translatewiki.net.
Change-Id: Icb8e23242c391516161d34230a2cb6fe8538c8ca
2022-07-25 08:36:39 +02:00
Translation updater bot 3f515ebfbf Localisation updates from https://translatewiki.net.
Change-Id: I8914478e26cb00401061e099520b87a44753df5c
2022-07-21 09:03:44 +02:00
Translation updater bot 65e70d94cd Localisation updates from https://translatewiki.net.
Change-Id: I73d6d097003f86d6e47495323681c33ec112d836
2022-07-19 08:16:35 +02:00
Translation updater bot 62f01a1c12 Localisation updates from https://translatewiki.net.
Change-Id: I4bb3a991d855fecebe80974c200f51dde4053495
2022-07-15 08:43:28 +02:00
Translation updater bot 3d63f4ef39 Localisation updates from https://translatewiki.net.
Change-Id: Ia686f910ee113b468bedc00a76c048265d4d15f2
2022-07-11 09:49:41 +02:00
Translation updater bot 5f5a483256 Localisation updates from https://translatewiki.net.
Change-Id: I5bcd1ead43934ef95193a08b433207a478537a91
2022-07-05 08:38:14 +02:00
Translation updater bot 11ebb4a227 Localisation updates from https://translatewiki.net.
Change-Id: I2ac469c38bac72626f6638b88a8df44bc92134e9
2022-07-04 08:22:08 +02:00
Translation updater bot 6c446f8c5b Localisation updates from https://translatewiki.net.
Change-Id: I9aa298906aa49d5f848e0447b19c7cb1032da1b0
2022-06-22 08:13:26 +02:00
Translation updater bot 32cda9d7e9 Localisation updates from https://translatewiki.net.
Change-Id: Ic9857a7e95384971bfb02eaa798ebd6fea959c77
2022-06-20 08:16:58 +02:00
Translation updater bot 2258653f23 Localisation updates from https://translatewiki.net.
Change-Id: Ic29d4c61de044752a87de70ea8e7e55d615d230b
2022-06-13 08:28:12 +02:00
Translation updater bot 84928cf99d Localisation updates from https://translatewiki.net.
Change-Id: Ib9147c832442265f92164e4316a7af447c36a62f
2022-06-09 08:16:40 +02:00
Translation updater bot ef596fef7a Localisation updates from https://translatewiki.net.
Change-Id: I9bb14ac9719c8b1baef7cdf4a00a22fc67b52528
2022-06-03 08:57:38 +02:00
Translation updater bot ab0e224fce Localisation updates from https://translatewiki.net.
Change-Id: I7caadb0caeead88ee54820ddbd39f75f7e54293a
2022-05-23 08:16:53 +02:00
Translation updater bot 1f2f0d0432 Localisation updates from https://translatewiki.net.
Change-Id: Ib83da50ef9a173e61c7c97a1ab279628ffee5f66
2022-05-17 08:28:08 +02:00
Translation updater bot 9180ab87b8 Localisation updates from https://translatewiki.net.
Change-Id: I2abc86bcfa81b1a0d88fe2c4e9459eb4b752a340
2022-04-25 08:17:55 +02:00
Translation updater bot 2c479393f6 Localisation updates from https://translatewiki.net.
Change-Id: I45eb0b5988e66289ff7998fcb831867151355ce1
2022-04-21 08:12:14 +02:00
Translation updater bot b839ee8b0a Localisation updates from https://translatewiki.net.
Change-Id: I632806d22091ef3976b959d1403b4a4b57d2743c
2022-04-15 09:56:27 +02:00
Translation updater bot f39529c8e7 Localisation updates from https://translatewiki.net.
Change-Id: I61baf6b5842785196e8745617b9d20f0fbfb5d35
2022-04-04 09:34:26 +02:00
Translation updater bot 9f089b6cbb Localisation updates from https://translatewiki.net.
Change-Id: I53a2b992d8db6c3cc55d99faa34052360aad321f
2022-03-31 08:35:54 +02:00
Translation updater bot 95a884a312 Localisation updates from https://translatewiki.net.
Change-Id: I56d303fbab92f8c27bc4c9ecda9eac541a1227a5
2022-03-28 08:21:04 +02:00
Translation updater bot b9f07350fd Localisation updates from https://translatewiki.net.
Change-Id: I74fa3a995b1eb0c0b0a0179907fd33126cd38289
2022-03-21 08:14:47 +01:00
Translation updater bot f5b9ef7322 Localisation updates from https://translatewiki.net.
Change-Id: I75c37596c540ea090829883442f1ab335d29e8e2
2022-03-16 08:07:40 +01:00
Translation updater bot 12d0780486 Localisation updates from https://translatewiki.net.
Change-Id: I5339265567f9149eaf6fb833a0975af5e70101da
2022-03-03 08:22:39 +01:00
Translation updater bot d35308558a Localisation updates from https://translatewiki.net.
Change-Id: I7297265a9ca9690342ae7802677cd5c0a57aefdf
2022-03-01 14:32:45 +01:00
Translation updater bot b725b4147b Localisation updates from https://translatewiki.net.
Change-Id: Ieb9082d17e7ef26c716512421732ed1c64cac74a
2022-02-25 09:43:46 +01:00
Translation updater bot 569b75dfc6 Localisation updates from https://translatewiki.net.
Change-Id: I11b43a68918f36b2cd6a6b78ffad8b9ffe378d47
2022-02-24 08:49:13 +01:00
Translation updater bot 035dea565d Localisation updates from https://translatewiki.net.
Change-Id: I3074d21f21ee2b047c5ec35b7dadd87f1b9ab403
2022-02-22 08:11:42 +01:00
Translation updater bot 17e2369774 Localisation updates from https://translatewiki.net.
Change-Id: Idaed0c0e108be9c9e117dc311e0977baeac74f26
2022-02-14 08:14:21 +01:00
Translation updater bot 42b985460e Localisation updates from https://translatewiki.net.
Change-Id: I27c303e502f2936b9ff785d205328af25a269888
2022-02-11 08:41:36 +01:00
Translation updater bot e489ab6982 Localisation updates from https://translatewiki.net.
Change-Id: I072b658c34180b5e2e6527ab8335391b4ced0f7f
2022-02-08 08:28:36 +01:00
Translation updater bot 65ffc6946a Localisation updates from https://translatewiki.net.
Change-Id: I93aba9c3bdd949d17d572502742115fc75deeff7
2022-02-07 08:22:07 +01:00
Translation updater bot dfe7928f4e Localisation updates from https://translatewiki.net.
Change-Id: I0149053b723ab0f9c2afa4e9f5c8719e36a81525
2022-02-03 08:44:06 +01:00
Translation updater bot 20e2ed0016 Localisation updates from https://translatewiki.net.
Change-Id: I5158740203cf4e0f65ab9fbd2d3839991de1c213
2022-02-02 08:20:03 +01:00
Translation updater bot 32cbc20b8c Localisation updates from https://translatewiki.net.
Change-Id: I56a2e3e9e1baadc12cfed58c55cc504c00bf0f32
2022-02-01 08:27:01 +01:00
Translation updater bot 6a847a1bf1 Localisation updates from https://translatewiki.net.
Change-Id: Ic6e79aac0ef2d4121b833cad5dd3d1b44149049d
2022-01-31 08:22:04 +01:00
Translation updater bot f86502f292 Localisation updates from https://translatewiki.net.
Change-Id: I587f0ed6b35b2be6d80bcd70684e0ba62729c92d
2022-01-27 08:38:46 +01:00
Translation updater bot 0f0688ebf2 Localisation updates from https://translatewiki.net.
Change-Id: I2468ba1d2c3b606ab0e131fb4284ef12d3d65b1c
2022-01-26 08:25:02 +01:00
Translation updater bot 36a19b1613 Localisation updates from https://translatewiki.net.
Change-Id: I301170495b9898ce04cccac45f67e80ff49fcaa9
2022-01-25 08:32:41 +01:00
Translation updater bot 0a7aeb655a Localisation updates from https://translatewiki.net.
Change-Id: Ife73c783a439fa4d01f2dd11821b4804922a78eb
2022-01-24 08:27:14 +01:00
jenkins-bot de2ed9219f Merge "Restrict ?withgadget query parameter to opt-in gadgets." 2022-01-24 00:46:10 +00:00
Ammarpad 5d3a547c8b Restrict ?withgadget query parameter to opt-in gadgets.
?withgadget query parameters allows for ad-hoc loading of gadgets
(after passing all other basic checks). This was recently added in
I5b30d4e.

In T29766#7611796 Gergo raised concerns about how this can be
potentially abused.

This patch aims to restrict the feature by giving gadgets latitude
to either use it or not depending on the nature of the gadget.

The patch does so by adding `supportsUrlLoad` option that gadgets
(maybe those deemed safe) can use it to opt-in to the parameter.
By default gadgets don't support it, so it can be enabled for each
on a case-by-case basis.

Bug: T29766
Change-Id: Ie64174085e650579d76cc862774a4fe1b3d08396
2022-01-24 00:31:19 +00:00
Translation updater bot 55f4ba11a7 Localisation updates from https://translatewiki.net.
Change-Id: I69b7d2ad03d25b7cdae1242411d9d380768e818b
2022-01-20 09:17:40 +01:00
Translation updater bot 8ad07cc7a1 Localisation updates from https://translatewiki.net.
Change-Id: I9c62de9f416a452410880815e37f04009ec90095
2022-01-19 08:24:06 +01:00
jenkins-bot 1cd6771f3a Merge "Avoid raising exception while trying to change content model of gadget definition" 2022-01-18 21:18:22 +00:00
Translation updater bot cce06923c6 Localisation updates from https://translatewiki.net.
Change-Id: I0f952e9e3de8c417cf7062daf0007410a385df80
2022-01-18 08:10:54 +01:00
Translation updater bot bb07f9305f Localisation updates from https://translatewiki.net.
Change-Id: I688f67eb0838162b8cf9c0f3c9e264a47e7423bf
2022-01-17 08:12:10 +01:00
Siddharth VP f1673c441a Avoid raising exception while trying to change content model of gadget definition
Currently, trying to change content model of a page in gadget definition namespace (via either the special page or the API) raises an exception. This uncaught exception has been replaced with a localisable error message.

Bug: T299303
Change-Id: Iad7d353d03cdfb52bf66aa2c9a12bc71a840577c
2022-01-16 22:43:37 +05:30
Translation updater bot 868591df51 Localisation updates from https://translatewiki.net.
Change-Id: Id0f8d7a3e6a3a578aed82a9a6162cbfd5770ec0f
2022-01-13 08:27:02 +01:00
Translation updater bot 2d1f320e23 Localisation updates from https://translatewiki.net.
Change-Id: Ib3ecee7f8352d60cb4165bd600efab42a3dc0d4f
2022-01-12 08:25:09 +01:00
Translation updater bot bf88b0826d Localisation updates from https://translatewiki.net.
Change-Id: Ib5cd5584bc8807360d3f8733e3c820202a8175f4
2022-01-11 08:23:08 +01:00
Translation updater bot 43fd45950e Localisation updates from https://translatewiki.net.
Change-Id: Ic809d9358186094d7d3dda1888313c47e247daea
2022-01-10 08:11:19 +01:00
Translation updater bot d51ddd3abc Localisation updates from https://translatewiki.net.
Change-Id: Id8a1473d5e75658012051bc779d9ac50ddc5aa18
2022-01-06 08:31:38 +01:00
Translation updater bot 2753d49ab3 Localisation updates from https://translatewiki.net.
Change-Id: Ib12b410d2c64863bf599895b7219c18d596ea893
2022-01-05 08:16:08 +01:00
Translation updater bot 5666eb11ba Localisation updates from https://translatewiki.net.
Change-Id: I4c461ffab1b0a3ee8b6a5f77d1c2309997665630
2022-01-04 08:27:49 +01:00
Translation updater bot 354c99e3d8 Localisation updates from https://translatewiki.net.
Change-Id: I5a9d21db2620a0a176f19f5c983a0c9a855de89a
2022-01-03 08:11:17 +01:00
Gergő Tisza 6b74e170c0
Add edit link to gadget definition in Special:Gadgets
When using the Gadget definition: namespace, link to the definition
pages from Special:Gadgets. Also change the wording of the links
to edit the names of the gadgets, to disambiguate them.

Change-Id: I327a4cfa9846edec60e1aaafc674cd66f4e0beae
2021-12-31 20:42:37 -08:00
jenkins-bot 2d86f9b62e Merge "Allow specifying page actions in definitions" 2021-12-31 19:35:18 +00:00
Siddharth VP 7ead5dab61 Allow specifying page actions in definitions
Allow specifying page actions ('view', 'edit', 'history', etc) in
gadget definitions. If specified, the gadget is run only on the given
page action(s).

This is especially useful for default gadgets like RefToolbar[1] and
TextReactions[2] that only need to be loaded while editing.

[1]: https://en.wikipedia.org/wiki/WP:RefToolbar
[2]: https://en.wikipedia.org/wiki/WP:Text_reactions

Bug: T204201
Bug: T63007
Change-Id: Idde71b3f1f6c36cd21539a2312be8f12217a9acc
2022-01-01 00:41:08 +05:30
Translation updater bot 4fd267d520 Localisation updates from https://translatewiki.net.
Change-Id: I1675022b99f576b0aeefb8c2c56d35126973bdec
2021-12-30 09:37:45 +01:00
Siddharth VP 1f7b9d90df Support JSON files in gadgets
The parsed content of JSON files in the gadget is made available from the
gadget's JS files via require(). That is, MediaWiki:Gadget-data.json (or
Gadget:data.json) is available as `require('./data.json')`. This is
supported for both MediaWikiGadgetsDefinitionRepo and
GadgetDefinitionNamespaceRepo. The JSON parsing is done server-side.

JSON can only be used in "package" gadgets - in which the JS files can
also be invoked via require().

Also added a test for GadgetResourceLoaderModule.

Bug: T198758
Depends-On: Ib4556d09c4d393269e32771aab00f59a5f630e1b
Depends-On: Id4589a597ccfc4266b3e63d10f75b146aa7a287a
Change-Id: I21acb46cdd244a39b5cc6963aa763f0113bd1e38
2021-12-27 17:33:21 +00:00
Translation updater bot 12e439a636 Localisation updates from https://translatewiki.net.
Change-Id: Ia152e9ae345a2a6995236c85a021a912fb10086a
2021-12-27 09:30:13 +01:00
Translation updater bot 4443e5a757 Localisation updates from https://translatewiki.net.
Change-Id: I276dba70b50c178d1de4da5ed3bd1d4ffbd5abd8
2021-12-23 08:38:05 +01:00
Translation updater bot 6239112b5c Localisation updates from https://translatewiki.net.
Change-Id: I710108eb957bf8321fa173707d982e7946acb7e9
2021-12-16 08:29:33 +01:00
Translation updater bot 9597ccb765 Localisation updates from https://translatewiki.net.
Change-Id: I743141f87b379825e33b1e84586b41d4f229505a
2021-12-10 09:19:27 +01:00
Translation updater bot 13924823de Localisation updates from https://translatewiki.net.
Change-Id: I6b160de284e2ed4d0e45dfbff88ab0baffc6afc2
2021-12-10 08:24:06 +01:00
Translation updater bot b4632bc4b9 Localisation updates from https://translatewiki.net.
Change-Id: If8c759188b56db82497d39767ad27fd89acd6e87
2021-11-29 08:11:45 +01:00
Translation updater bot 8478c86ae1 Localisation updates from https://translatewiki.net.
Change-Id: I086a93f1502e8905fa0e3946997ebcf85e68f1a7
2021-11-25 08:24:18 +01:00
Translation updater bot 8ca6563de3 Localisation updates from https://translatewiki.net.
Change-Id: I172d424d27196e4f0a6e476dc740f66c6ac31c74
2021-11-15 08:11:46 +01:00
Translation updater bot 05eb8cd98e Localisation updates from https://translatewiki.net.
Change-Id: I2ca0ef7f1a128a3c42ac1772d78e395355e8fc2c
2021-11-08 08:16:56 +01:00
Translation updater bot 671290d263 Localisation updates from https://translatewiki.net.
Change-Id: Idd77538841e13109aa182076ef3e9829b6fd0dee
2021-11-01 09:33:47 +01:00
Translation updater bot 70123ae344 Localisation updates from https://translatewiki.net.
Change-Id: I4896736414ac9a239391ee36b11ed13e658b2862
2021-10-21 08:21:46 +02:00
Translation updater bot 6eb0ad00e6 Localisation updates from https://translatewiki.net.
Change-Id: Ib7d16cad3b4132c70c7abe96f84ec4c153fa96bc
2021-10-20 08:36:59 +02:00
Translation updater bot 397f7306c0 Localisation updates from https://translatewiki.net.
Change-Id: Ia2f94cbb98e036e3a86dc4f5803a2bc6f892c85c
2021-10-18 15:20:13 +02:00
Translation updater bot 0007744ee6 Localisation updates from https://translatewiki.net.
Change-Id: I20f9b00d5deee7bb27599b7af7eac68600e5e03f
2021-09-28 08:18:48 +02:00