Commit graph

958 commits

Author SHA1 Message Date
Translation updater bot a6bd9144ac Localisation updates from https://translatewiki.net.
Change-Id: Iee39d6c6330d81431ffc8216d59c7ac7bd8fb199
2023-11-08 13:07:36 +01:00
Translation updater bot b1413814c2 Localisation updates from https://translatewiki.net.
Change-Id: I79ef1b6113b7d037c989906e675b8127be4ab771
2023-11-06 08:56:19 +01:00
Translation updater bot 40d75e5ac5 Localisation updates from https://translatewiki.net.
Change-Id: I86361ee316a11cd3abf99c8a1da4bef67b59ba4b
2023-10-31 09:08:59 +01:00
Translation updater bot b7dd0f13ef Localisation updates from https://translatewiki.net.
Change-Id: Ibb6418b354a7855c84f06295e850346364149e45
2023-10-30 17:59:19 +01:00
Translation updater bot 319d422398 Localisation updates from https://translatewiki.net.
Change-Id: I6066ae836d62f1e775bb51a9812d16f1ba7d9e86
2023-10-23 09:50:38 +02:00
Translation updater bot 03086af912 Localisation updates from https://translatewiki.net.
Change-Id: I5728c9fcfef16a3dafc9454da7af0df14a2873c3
2023-10-19 08:42:03 +02:00
Translation updater bot a41504a35e Localisation updates from https://translatewiki.net.
Change-Id: I964d878120eb5c6322eaafa16b10fee211dd3764
2023-10-11 08:45:33 +02:00
Translation updater bot 01e10d087f Localisation updates from https://translatewiki.net.
Change-Id: I3138832673c480df0de80eabbc995d5b3d94ba2b
2023-10-10 08:52:13 +02:00
Translation updater bot 6419638558 Localisation updates from https://translatewiki.net.
Change-Id: I873f4d3a742895e56ec8bb7bf3eeea946049808a
2023-10-09 08:56:01 +02:00
Translation updater bot 6221493052 Localisation updates from https://translatewiki.net.
Change-Id: Ie5a41080ecc5ac1d4e16f830aa28b868591a2c80
2023-10-04 09:08:16 +02:00
Translation updater bot c8e21c9f1d Localisation updates from https://translatewiki.net.
Change-Id: I503126feeed44e3768fa423e9d5ca7f152506666
2023-10-02 10:57:19 +02:00
Translation updater bot 2d525ce1c9 Localisation updates from https://translatewiki.net.
Change-Id: Ic5f986af6a9f022eb8afe71ef6f3769a8dbaccaa
2023-09-26 08:43:55 +02:00
Translation updater bot 81dc3dd6f5 Localisation updates from https://translatewiki.net.
Change-Id: I9d0c8fb0f71850781d1dd0d44a7c8d34607dc3da
2023-09-25 08:46:19 +02:00
jenkins-bot 8284344e6e Merge "Add support for content models in definitions" 2023-09-22 23:29:53 +00:00
Translation updater bot 08860aabdc Localisation updates from https://translatewiki.net.
Change-Id: Ib0b01c291aa4389f1a5443cb7a4dc57868a7a9f4
2023-09-22 08:46:54 +02:00
Siddharth VP 72cbb64069 Add support for content models in definitions
Adds a contentModels option to gadget definitions to restrict gadgets to
run in pages of the given content models only.

Use-cases include gadgets for tabular data[1] (for Tabular
.JsonConfig model), for editing map data[2] (for Map.JsonConfig model),
and for showing links in code pages[3] (restricted to javascript, css,
json, and scribunto models), as well as common gadgets like ProveIt[4]
which can be restricted to wikitext model.

[1]: https://commons.wikimedia.org/wiki/MediaWiki:Gadget-TabularImportExport.js
[2]: https://fr.wikipedia.org/wiki/MediaWiki:Gadget-KartoEditor.js
[3]: https://en.wiktionary.org/wiki/MediaWiki:Gadget-CodeLinks.js
[4]: https://commons.wikimedia.org/wiki/Help:Gadget-ProveIt

Bug: T204201
Bug: T63007
Change-Id: I7dcfc21d674ead8d710e7f77d13bf18bcad15079
2023-09-21 22:27:22 +05:30
Translation updater bot 3c50a61ebe Localisation updates from https://translatewiki.net.
Change-Id: Ia00896b807bb2bc9d9dbd17c0d8ddfca68b85bef
2023-09-21 10:15:48 +02:00
brandonxlf ec69cea0e3 Add support for namespaces in definitions
Adds a "namespaces" option to the gadget definition, which takes a
list of namespace IDs. Enabled gadgets will only load when the
viewed page is in one of the required namespaces.

Bug: T204201
Bug: T63007
Change-Id: I7f797e35352b242ad78704074e98c6569a1adf91
2023-09-20 14:50:33 -07:00
Translation updater bot 35179b9d7e Localisation updates from https://translatewiki.net.
Change-Id: I9a055c34fb1c3a3c1fe7b9d309cd078cda7ddd2a
2023-09-20 08:55:12 +02:00
Translation updater bot 314f1caff3 Localisation updates from https://translatewiki.net.
Change-Id: I8927b3d0c2a7e7b1b007e58a0cecbcc51b75d864
2023-09-19 09:25:28 +02:00
jenkins-bot 30e5766dd0 Merge "Hide gadgets on Special:Preferences when forcesafemode=true" 2023-09-18 22:13:11 +00:00
Translation updater bot 944255f58e Localisation updates from https://translatewiki.net.
Change-Id: I975802592b20dcb6444bb8ae801088f47c20b25b
2023-09-18 08:43:19 +02:00
Translation updater bot f1eeb43578 Localisation updates from https://translatewiki.net.
Change-Id: Ibd5677caf992908569f433f2b4732c8a32e791a0
2023-09-11 09:03:45 +02:00
Dringsim e292854740 Hide gadgets on Special:Preferences when forcesafemode=true
See https://gerrit.wikimedia.org/r/c/mediawiki/core/+/940156/comments/bdd88839_f9bdd28a

Bug: T342347
Depends-On: I6f2d024c01cdb1d7305ff024996175eb2656d0a8
Change-Id: Ia72bb33a3fd559cd5a30a44f736b0d3040843323
2023-09-08 17:15:15 +00:00
Translation updater bot 5e7dbab637 Localisation updates from https://translatewiki.net.
Change-Id: I16c3a8535c65ebf8534ea208c3d48289da400328
2023-09-06 08:42:04 +02:00
Translation updater bot 63629b4f3a Localisation updates from https://translatewiki.net.
Change-Id: I89a3c3e32fc2cee75f5d04a07e75fbfe9b6c4e3b
2023-09-01 09:02:55 +02:00
Translation updater bot d89d269d83 Localisation updates from https://translatewiki.net.
Change-Id: Ib3fb2b64bfbae982ab1aa671c9b17395b0c33949
2023-08-28 09:30:05 +02:00
Translation updater bot 6c37ea1bd0 Localisation updates from https://translatewiki.net.
Change-Id: I0e5127d6accdcb333d253cc8b6de6d23d090d36e
2023-08-21 08:47:46 +02:00
Translation updater bot 636c4482b3 Localisation updates from https://translatewiki.net.
Change-Id: I4374c8f442acbcbef480410d591edc1f502df470
2023-08-15 08:25:55 +02:00
Translation updater bot 847b5733a0 Localisation updates from https://translatewiki.net.
Change-Id: Ic046e7260f8ca8ac1472462c8c63700648bfdf49
2023-08-14 09:17:41 +02:00
Translation updater bot 1f7dc8d030 Localisation updates from https://translatewiki.net.
Change-Id: Ia70c66b1d3e43e9c58cb7a597319b06d28277551
2023-08-11 09:00:31 +02:00
Translation updater bot 977c8aacf3 Localisation updates from https://translatewiki.net.
Change-Id: I1867d052f7ac038f6b3c22b4b7bc3ad9b8067728
2023-08-09 09:15:08 +02:00
Translation updater bot f32888a3e2 Localisation updates from https://translatewiki.net.
Change-Id: I8b369947840cbd62b7fe372c78b7c945b2687ce9
2023-08-08 09:00:58 +02:00
Translation updater bot 4058837bb7 Localisation updates from https://translatewiki.net.
Change-Id: Ib09ccffc41ecb3769b7545ab18a959d9292a672a
2023-08-07 08:38:32 +02:00
Umherirrender c800299653 i18n: Split apihelp for parameter list=gadgets/gadgetcategories prop=
Easier to translate
There is no visible change on Special:ApiHelp/query+gadgets

Also split for list=gadgetcategories&gcprop=
Visible on Special:ApiHelp/query+gadgetcategories

Bug: T285545
Change-Id: Ic40326cd747ffe2153cff7d10e0083bd5e51345e
2023-08-05 01:47:04 +02:00
Translation updater bot a5427e99c3 Localisation updates from https://translatewiki.net.
Change-Id: Id33bbc328c0fd83893c6e59a13200f58550ea924
2023-08-02 09:04:09 +02:00
Translation updater bot 8ee1b9f12a Localisation updates from https://translatewiki.net.
Change-Id: Ib9a3d79f02b2a1cfa2d29655d855d44e99a1e382
2023-08-01 08:36:33 +02:00
Translation updater bot 31eef4328d Localisation updates from https://translatewiki.net.
Change-Id: I9ddd52b33efadafb27030b1e3c9e7828793fd2ab
2023-07-24 09:37:44 +02:00
Translation updater bot 2e2c57c471 Localisation updates from https://translatewiki.net.
Change-Id: Id06dcf204b7eb92f15a72f16aaaa500f0a7f2a59
2023-07-17 10:17:17 +02:00
Amir E. Aharoni 33c3721f56 Add missing articles in a message
Change-Id: If20a7f9795a76d100a4d6b195151fa2510d3cb41
2023-07-14 18:47:37 +03:00
Translation updater bot 406c907fab Localisation updates from https://translatewiki.net.
Change-Id: I32de0b622ba8806d7b6b76700d08d6bf51a8de37
2023-07-14 09:34:05 +02:00
Translation updater bot e0ce90e2ed Localisation updates from https://translatewiki.net.
Change-Id: I083fcdb8fd6b4cdeb4a9090e9de8d90dd4197495
2023-06-26 12:39:12 +02:00
Umherirrender 779f058aaf api: Remove old apihelp i18n description messages
No longer used since 1.33

Automatically removed message keys with "doc-apihelp-description" in qqq

Bug: T340253
Change-Id: Iea496e743506a71608ec7adaf26364fef29678fc
2023-06-23 23:46:23 +02:00
Translation updater bot 8fe6e40cd4 Localisation updates from https://translatewiki.net.
Change-Id: Ie668bbf78926c42e071b03901667b0dc90aa71c4
2023-06-19 11:07:01 +02:00
Translation updater bot 8f8f740740 Localisation updates from https://translatewiki.net.
Change-Id: Ib31614b64e0bfdb6b0e077c896d65fb4b852f977
2023-06-14 13:06:58 +02:00
Translation updater bot a596383607 Localisation updates from https://translatewiki.net.
Change-Id: Ie4ae577b5c0213a455d2b3e7d5e330c45d726c22
2023-06-12 13:07:23 +02:00
Translation updater bot b61e458f98 Localisation updates from https://translatewiki.net.
Change-Id: I653f2eaa744bdeddc38725078cca1eca365f6caa
2023-06-09 09:13:44 +02:00
Translation updater bot 81c2769797 Localisation updates from https://translatewiki.net.
Change-Id: I780b45f5f156a8cd90bec3df5ebb9acd338a18f8
2023-06-06 08:11:09 +02:00
Translation updater bot d12c0d5454 Localisation updates from https://translatewiki.net.
Change-Id: I907357b0c55818121bdf3165df5a07409cc37274
2023-05-25 09:09:21 +02:00
Translation updater bot 6574d877bf Localisation updates from https://translatewiki.net.
Change-Id: I44791acc159b078ad5260af5685a8a24d74ac563
2023-05-10 08:40:37 +02:00
Translation updater bot fc57e390ae Localisation updates from https://translatewiki.net.
Change-Id: I9b3563363809a2d0efae1c5798babf46d11db9d1
2023-05-05 10:39:03 +02:00
Translation updater bot 54b3796e62 Localisation updates from https://translatewiki.net.
Change-Id: I3c918a71f7b85a12b3781b226be03b6c75b5123a
2023-05-02 08:59:50 +02:00
Translation updater bot ba8f8b59d6 Localisation updates from https://translatewiki.net.
Change-Id: I87d807a7a504c1e0126f71febe717dea1d4d0c21
2023-04-25 08:48:00 +02:00
Translation updater bot b5d42a143b Localisation updates from https://translatewiki.net.
Change-Id: I8c5e6b2ffb716601dbaba1f9cb8ae115b785ff2f
2023-04-20 08:47:55 +02:00
Translation updater bot 82bbb35295 Localisation updates from https://translatewiki.net.
Change-Id: I04d04894168a99ec82680dd16c583fa538855189
2023-04-17 09:13:48 +02:00
Translation updater bot a5ac80c606 Localisation updates from https://translatewiki.net.
Change-Id: I97b9ab8790dc75a2a712875b47719fe3f4ae0461
2023-04-10 09:21:25 +02:00
Translation updater bot 5e5d2d248e Localisation updates from https://translatewiki.net.
Change-Id: Idc0079964e89268a2a88c751b94dd56048fef5fc
2023-04-04 09:17:04 +02:00
Translation updater bot a568552a50 Localisation updates from https://translatewiki.net.
Change-Id: Idfdaa6061695a4f1482b835b4299db349f814948
2023-03-28 08:40:22 +02:00
Translation updater bot f655d160fb Localisation updates from https://translatewiki.net.
Change-Id: Ia17ba1a1d1340550396839e5aa7d4ba40aceecee
2023-03-20 09:01:16 +01:00
Translation updater bot bcab036988 Localisation updates from https://translatewiki.net.
Change-Id: Iea1531e74f8be65999223b658d10ebccd43bc51d
2023-03-13 08:38:54 +01:00
Translation updater bot eea347d8d8 Localisation updates from https://translatewiki.net.
Change-Id: Ifbf698991bef3986c7755eb5ca774d03a96f1aa0
2023-03-06 08:33:18 +01:00
Translation updater bot 639855173f Localisation updates from https://translatewiki.net.
Change-Id: Ie81457e029d3a3e3b18c9320bbc5c618be727a4d
2023-02-24 08:59:58 +01:00
Translation updater bot 94da2c607a Localisation updates from https://translatewiki.net.
Change-Id: I4bc266ef5e4dfeb77d3e33ecd333573844c25864
2023-02-23 08:39:04 +01:00
Translation updater bot 621376b3e3 Localisation updates from https://translatewiki.net.
Change-Id: If830c25aef8039c66da00e8f67a47e9e99b0cd42
2023-02-21 08:21:08 +01:00
Translation updater bot 0ec6ed658d Localisation updates from https://translatewiki.net.
Change-Id: I6637911d203e1a96503c8afe01251defcaa780b1
2023-02-20 09:46:30 +01:00
Translation updater bot 05fa7e2b69 Localisation updates from https://translatewiki.net.
Change-Id: Ic4c6ac1dff937292fd389cb6cf7fddd2826c96e0
2023-02-17 08:55:58 +01:00
Translation updater bot 254b953d81 Localisation updates from https://translatewiki.net.
Change-Id: I922da292c9bfacee0aad7f633f4a2a40fcbf4fb7
2023-02-13 08:30:07 +01:00
Translation updater bot 0a34f7ba54 Localisation updates from https://translatewiki.net.
Change-Id: I700ad2e7ed0d15dd4baccbe90acefe909d6511e5
2023-02-08 08:39:52 +01:00
Translation updater bot 201ca78f2c Localisation updates from https://translatewiki.net.
Change-Id: I4fa8aad478f63d510ec648c82f19a511bad72bbc
2023-02-06 08:45:07 +01:00
Translation updater bot a7523dca56 Localisation updates from https://translatewiki.net.
Change-Id: I2ee49fbec05508b844dead47c1754486520c5d71
2023-01-27 08:36:11 +01:00
Translation updater bot fd9cbc15ff Localisation updates from https://translatewiki.net.
Change-Id: Ie9a70679e075d526144f7a97f11741ba29fd9ba7
2023-01-23 08:23:01 +01:00
Translation updater bot 7a28269517 Localisation updates from https://translatewiki.net.
Change-Id: I1a663b9f6ef4a3439fd845a22ea8474c424b1e5a
2023-01-02 08:43:05 +01:00
Translation updater bot 30f889586a Localisation updates from https://translatewiki.net.
Change-Id: Ibd98c22b6c5dcedb88f7596246186f002526ec9f
2022-12-29 10:01:32 +01:00
Translation updater bot 3eee42f86e Localisation updates from https://translatewiki.net.
Change-Id: Ifb87ad261a49aaa0bf89677eaaf6e6070da07825
2022-12-26 08:46:02 +00:00
Translation updater bot e766f9dee8 Localisation updates from https://translatewiki.net.
Change-Id: I2139d78f89496b2acdc15093723d7e4c521cc21f
2022-12-22 11:03:34 +01:00
Translation updater bot 2717105800 Localisation updates from https://translatewiki.net.
Change-Id: I2ca2bfc97e5879a4715d432aa9e94c7bea0d026d
2022-12-21 09:15:30 +01:00
Translation updater bot 6c03d06911 Localisation updates from https://translatewiki.net.
Change-Id: Ie9fbedfa01c60bccd042b53c0bb79e550c66b45b
2022-12-16 08:46:55 +01:00
Translation updater bot 0c112d206b Localisation updates from https://translatewiki.net.
Change-Id: I622ddc2044cd3837579a8ae9122c0b3dcc2a736e
2022-12-12 08:22:23 +01:00
Translation updater bot 6dfcf1b238 Localisation updates from https://translatewiki.net.
Change-Id: I20ffe8a321b3b50feac1c60549d04b54746c4b26
2022-12-07 08:13:18 +01:00
Translation updater bot 28da6205b4 Localisation updates from https://translatewiki.net.
Change-Id: Id72b3e17a2969f64d737470cb418a5b64f27a3e4
2022-12-05 08:33:37 +01:00
Translation updater bot 5b5863f9be Localisation updates from https://translatewiki.net.
Change-Id: I3af412f37cefeb22ab870e0b6b9da1e2eaf4ff2e
2022-12-02 09:08:19 +01:00
Translation updater bot 2fe4870f81 Localisation updates from https://translatewiki.net.
Change-Id: Iaf4646c7df60fb277bb28dd6786018ce6b09c398
2022-11-24 08:17:24 +01:00
Translation updater bot f90ce7e2ff Localisation updates from https://translatewiki.net.
Change-Id: Ia6e3d55dc3b521c6be84b76c73cf532ba35f966b
2022-11-22 08:33:45 +01:00
Translation updater bot 41289b04d2 Localisation updates from https://translatewiki.net.
Change-Id: I91e0e9702847cf79cd3d971b9f4d247a0d71a097
2022-11-21 08:16:05 +01:00
Translation updater bot eed26036a4 Localisation updates from https://translatewiki.net.
Change-Id: I5ec868e6b212499777acb3b1cd0454f4f2ff9325
2022-11-14 08:10:26 +01:00
Translation updater bot 6f4a694fc5 Localisation updates from https://translatewiki.net.
Change-Id: I6ad3b86de2eed1043d1dd365b55c0e92fb10c1ae
2022-11-07 08:34:14 +01:00
Translation updater bot 2d36dffea7 Localisation updates from https://translatewiki.net.
Change-Id: I60ce1f678e00aa327aa5660fbc83bb2c878207df
2022-11-01 08:52:27 +01:00
Translation updater bot 3f2d352606 Localisation updates from https://translatewiki.net.
Change-Id: I8d1f0b19f4d8723d5ee14ccd82ffa07119150bd8
2022-10-31 09:45:48 +01:00
Translation updater bot 93a5aedb86 Localisation updates from https://translatewiki.net.
Change-Id: Ic1a98436f217a7aff03f5e8184fa057ef672285e
2022-10-27 08:55:00 +02:00
Translation updater bot 454dfc0140 Localisation updates from https://translatewiki.net.
Change-Id: I963bdca86afe3e39557b90672ac3c5182c4ca14c
2022-10-25 08:24:05 +02:00
Translation updater bot 1ce8fd9b63 Localisation updates from https://translatewiki.net.
Change-Id: Icb15b5a6cce5f53fd63d36b1bff9359395216a66
2022-10-24 08:22:50 +02:00
Siddharth VP 7793a9475f Add support for ES6 gadgets, but with validation disabled
Gadgets can mark themselves as ES6-only by specifying the requiresES6
boolean attribute. Syntax validation is disabled for them (as the
validator doesn't support ES6 yet), and they are loaded together in a
separate request.

The minifier doesn't reject syntax errors, and thus these would
be passed through to web clients. Hence, communities using this feature
are encouraged to use ESLint or another linter to make sure only
valid ES <= 6 code is being used.

Because of the above, this feature is only made available for
non-default gadgets.

Bug: T75714
Change-Id: Ib98ac0700471554d5721d7ab858d4660e1e0e980
2022-10-20 22:03:18 +00:00
Translation updater bot d2c7da6dc5 Localisation updates from https://translatewiki.net.
Change-Id: Ib3f3a6c43f860a39b9ad09ee67c3aa9d75f73541
2022-10-19 08:19:56 +02:00
Translation updater bot 7082f4b69b Localisation updates from https://translatewiki.net.
Change-Id: I5c76abf7d013960a85e2a74ebf5ffc9f54406943
2022-10-18 08:22:30 +02:00
Translation updater bot 27e6d404c6 Localisation updates from https://translatewiki.net.
Change-Id: Ie25c3569aa84b2c55a0715bda66f8701fed81345
2022-10-17 08:21:32 +02:00
Translation updater bot c5954d45c9 Localisation updates from https://translatewiki.net.
Change-Id: I3c5779b9a250f3f4cb1130095d94ad2021d0eeb9
2022-10-13 08:08:51 +02:00
Translation updater bot ff21bc9ccf Localisation updates from https://translatewiki.net.
Change-Id: I6f9d0636a12be849e6118008a3a92900b8a1cbf1
2022-10-10 10:20:11 +02:00
Translation updater bot 7b7326e66e Localisation updates from https://translatewiki.net.
Change-Id: I784e5f711e07e1af4590faaf4558f5510ff92f02
2022-10-04 08:29:42 +02:00
Translation updater bot 58b2945402 Localisation updates from https://translatewiki.net.
Change-Id: Iafa0e63a4b227c0f581e7b242db71d3fda607484
2022-10-03 09:45:44 +02:00
Translation updater bot 3301bb502c Localisation updates from https://translatewiki.net.
Change-Id: Iabe72a5c929521f12212052528ba873167787005
2022-09-30 08:53:50 +02:00
Translation updater bot fc1e7d2a4c Localisation updates from https://translatewiki.net.
Change-Id: I0b1ba1052f5f9666297293d9c9d4e5bea2b26ee0
2022-09-29 08:27:26 +02:00
jenkins-bot 2c4c23fe6c Merge "Add a description for Special:Preferences" 2022-09-28 19:31:09 +00:00
Translation updater bot 4294576183 Localisation updates from https://translatewiki.net.
Change-Id: I1ea4d2a23b35680277a5b8c72e0c09977e04f717
2022-09-28 08:21:29 +02:00
suecarmol 14f18c3b32 Add a description for Special:Preferences
Added a description that will be displayed in Special:Preferences mobile layout

Bug: T311717
Change-Id: I494253c57ea3bb13180fbd0cea16ab4a871e1109
2022-09-27 12:51:35 -05:00
Translation updater bot a28a0127ed Localisation updates from https://translatewiki.net.
Change-Id: Iad8e6b1f8c96e726516fbd029c259a8f71f74c4c
2022-09-26 08:15:17 +02:00
Translation updater bot 30e3ba12ca Localisation updates from https://translatewiki.net.
Change-Id: I9fcb656a4d45a579b59f4a472ea13842d17d52c6
2022-09-23 08:29:13 +02:00
Translation updater bot 6c22db9177 Localisation updates from https://translatewiki.net.
Change-Id: Id2c7f0e716cbc8d7760eb37124c0fb2341f09058
2022-09-21 08:28:49 +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
Translation updater bot 220dd66c42 Localisation updates from https://translatewiki.net.
Change-Id: I563276d0019c98e4fd549c5f036f58a71fb706a3
2021-09-27 08:34:53 +02:00
Translation updater bot 45217277b9 Localisation updates from https://translatewiki.net.
Change-Id: Ide9cd2c01664f0c9d8bd60a5b1df4e4462420080
2021-09-20 08:18:59 +02:00
Translation updater bot 8d5a15a01b Localisation updates from https://translatewiki.net.
Change-Id: I23b286a3f539a663fe836a14d1b9f8b1db52e33c
2021-09-17 08:45:22 +02:00
Translation updater bot 785871fa9d Localisation updates from https://translatewiki.net.
Change-Id: I41451fe655647063f7bb6d18d42802f9fddafb5e
2021-08-23 09:03:57 +02:00
Translation updater bot d9819b3a1d Localisation updates from https://translatewiki.net.
Change-Id: Ib2077decce766cfa7bf3a68cb30da52cc3650de8
2021-08-19 08:13:29 +02:00
Translation updater bot 67ba781489 Localisation updates from https://translatewiki.net.
Change-Id: I82ba2af71f01ba9f99d3fdb9119f04d7ac54fced
2021-08-11 08:19:17 +02:00
Translation updater bot e45b2ccba9 Localisation updates from https://translatewiki.net.
Change-Id: I3fee0115e4d14d4d351d1a129034cd345798dc97
2021-08-09 08:24:04 +02:00
Translation updater bot 3d2102f375 Localisation updates from https://translatewiki.net.
Change-Id: Ia359725032242bf274c9f624ddc6bdef02d6c6dc
2021-08-06 08:13:33 +02:00
Translation updater bot c2fa8e2b6f Localisation updates from https://translatewiki.net.
Change-Id: I27f99fbfe8af0ac8bc1e9a1f3f3d78daa0819808
2021-08-02 08:36:53 +02:00
Translation updater bot eab0a86e84 Localisation updates from https://translatewiki.net.
Change-Id: I4f0f64f1541f3c6af58376cb9aae2298596a7d91
2021-07-29 08:44:56 +02:00