Commit graph

905 commits

Author SHA1 Message Date
Timo Tijhof a8c3eb1282 Move "gadgets" message to "special-gadgets"
This makes way for "MediaWiki:Gadgets/<id>.json" to be used free of
any confusion or misinterpretation about the subpage being a
translation of "MediaWiki:Gadgets".

Change-Id: Icb68ce6c26a83d7201a97a5406f8752b3c5b0855
2024-02-09 19:10:54 +00:00
Translation updater bot 86000a8718 Localisation updates from https://translatewiki.net.
Change-Id: I19ae09d1edb8ae8fdb4bc8ad33eb53d1be466526
2024-02-05 08:49:44 +01:00
Translation updater bot 5ec56bef7d Localisation updates from https://translatewiki.net.
Change-Id: I82f87498d700c4be85ef94bd0dd03c273aa8fae0
2024-01-31 08:29:04 +01:00
Translation updater bot 11fa3db4a4 Localisation updates from https://translatewiki.net.
Change-Id: I7c634517cd4dfbf7bbcf967ce726d239870fae6a
2024-01-30 09:39:04 +01:00
Translation updater bot e87235edaf Localisation updates from https://translatewiki.net.
Change-Id: Icb93c28cc7e06f137617865c45da70b6b405ced1
2024-01-28 16:06:41 +01:00
James D. Forrester 27f913cc96 Drop RL targets definitions from module class, and validation / error code
Bug: T328497
Change-Id: If6d742ea719e4c8db9d915e8297d915d2150ef50
2024-01-24 12:11:20 -05:00
Translation updater bot b0cb91e055 Localisation updates from https://translatewiki.net.
Change-Id: I5a33f2fa139b25e0139e7b02ed8025ad31799c65
2024-01-19 09:17:01 +01:00
Translation updater bot baff83d550 Localisation updates from https://translatewiki.net.
Change-Id: I58d3aefa499ab19d0f7a70b4c7e0469abf608563
2024-01-17 08:37:18 +01:00
Translation updater bot 4b656f781d Localisation updates from https://translatewiki.net.
Change-Id: Icabbb59cf05b0eb64854a0a3ad3eec35032a2570
2024-01-16 08:25:44 +01:00
Translation updater bot 474e6d7d55 Localisation updates from https://translatewiki.net.
Change-Id: I629f7a203e613030587c43c8d5ca7f794d6fe41b
2024-01-15 08:24:27 +01:00
Translation updater bot 549e9c015d Localisation updates from https://translatewiki.net.
Change-Id: I8bdfa3981c37668489f8ad700943edb06a100a17
2024-01-12 09:00:18 +01:00
jenkins-bot 50d2405a43 Merge "Add validations for skins and rights" 2024-01-11 17:03:15 +00:00
Translation updater bot 2687909023 Localisation updates from https://translatewiki.net.
Change-Id: I51cef8c72f460501026f9c064d0fe34b24e59e9f
2024-01-11 10:04:15 +01:00
Siddharth VP b944152d3a Add validations for skins and rights
Bug: T298334
Change-Id: If32b334f331845eab6c115f40f8dcf4534028c9c
2024-01-11 10:02:40 +05:30
Translation updater bot 7a9cf54022 Localisation updates from https://translatewiki.net.
Change-Id: I7cee8d0a9599b714042a924f9bb5a0035f61c6bb
2024-01-10 08:32:55 +01:00
Translation updater bot 738e9a84c8 Localisation updates from https://translatewiki.net.
Change-Id: Ic040b5c8700e0974aa4a56872e258ab640d28aea
2024-01-09 08:59:35 +01:00
Siddharth VP 41af49e9b5 Expand pre-save validations for JSON definition pages
* Validate that pages have .js, .css or .json suffixes.
* Validate that namespaces are integers, disallowing doubles.
* Validate that type is either general or styles.
* Validate that targets are either desktop or mobile.
* Fix validation of skins: stop allowing `true` as it isn't actually
allowed - it causes an exception in Gadget::isSkinSupported().

Bug: T298334
Change-Id: Ic59c20172f496d281acd59419f5c760ad29ce317
2024-01-08 20:04:12 +00:00
Translation updater bot 2e8d5bd762 Localisation updates from https://translatewiki.net.
Change-Id: Ib5a18070efef5c45fe075d1bb5856428530b2bbb
2024-01-08 09:15:33 +01:00
Translation updater bot 5113f84909 Localisation updates from https://translatewiki.net.
Change-Id: I150186d14cd4effbfbbe1a288f3510302b3fbf54
2024-01-05 09:12:47 +01:00
Translation updater bot 5bb872b640 Localisation updates from https://translatewiki.net.
Change-Id: Ibb61b7d05587ca6993d567b31c8837688814379d
2024-01-04 09:55:42 +01:00
Translation updater bot 9ae31dd878 Localisation updates from https://translatewiki.net.
Change-Id: I4fe085bcb3d32515b902adf22baf5c697b756fab
2024-01-03 08:34:32 +01:00
Translation updater bot 3c604b0e50 Localisation updates from https://translatewiki.net.
Change-Id: I489196645460bd1b38e526653f44b485c8d9f23b
2024-01-02 10:16:15 +01:00
Translation updater bot 4165d56e90 Localisation updates from https://translatewiki.net.
Change-Id: I34a1d42e89c0e937580887836f763ceb9b9afeeb
2023-12-29 19:22:06 +01:00
jenkins-bot be19375262 Merge "Specify all source pages in a single array in JSON definitions" 2023-12-29 11:08:02 +00:00
Translation updater bot 128047eb5e Localisation updates from https://translatewiki.net.
Change-Id: I164176f96fec8c61e0a2cc94156ce4ebace721b4
2023-12-28 14:49:50 +01:00
Translation updater bot 904aba6ee0 Localisation updates from https://translatewiki.net.
Change-Id: I02457f67ace2c90dddb08cdbb57fa9f23fe28aed
2023-12-26 14:42:51 +01:00
Translation updater bot 586135a91a Localisation updates from https://translatewiki.net.
Change-Id: I76284e1b683b2a7ee912fc34d522c538dbc4da06
2023-12-22 17:45:57 +01:00
Translation updater bot fd3846eb04 Localisation updates from https://translatewiki.net.
Change-Id: I2ac655dd36eae2b29b91bd5c238c5af3911c4a04
2023-12-20 14:04:49 +01:00
Translation updater bot 8282ce3e0d Localisation updates from https://translatewiki.net.
Change-Id: I38f711aa72902a921bc3296736f233dc4a3082ba
2023-12-18 18:17:26 +01:00
Siddharth VP 0c61a5a468 Specify all source pages in a single array in JSON definitions
As this repo is not used anywhere in production, there is no backward
compatibility. Any scripts, styles, datas specified in existing
definition pages will get ignored.

Gadget::getJSON() no longer checks isPackaged() – that is now left
for callers - only relevant one is in GadgetRLModule. That was done
because validationWarnings() method needs the JSON page list even for
non-package gadgets.

Bug: T353174
Change-Id: Ic820bc4632981369c72f822fb8b9b7195930eaa6
2023-12-16 14:31:09 +05:30
Translation updater bot db306eeebd Localisation updates from https://translatewiki.net.
Change-Id: Ib088ea45147d3859654dc41443918d936f30bb83
2023-12-13 08:41:04 +01:00
Translation updater bot 3927ca48db Localisation updates from https://translatewiki.net.
Change-Id: Icaceda1608a1648d49a847c56bf6b3e01bb5d3d6
2023-12-11 10:43:16 +01:00
Translation updater bot cd4b5fcc3e Localisation updates from https://translatewiki.net.
Change-Id: I13aafcaadf909a7e671d6c1d48559e12d340be9c
2023-12-08 14:45:36 +01:00
jenkins-bot 1b2b942fb8 Merge "Change "package gadgets" to "packaged gadgets"" 2023-12-07 11:12:05 +00:00
Translation updater bot 1ea4bc8376 Localisation updates from https://translatewiki.net.
Change-Id: Ib15e99ea7695d7216c3b7199412e9e1501f84cbb
2023-12-07 10:01:47 +01:00
jenkins-bot 79f93059cb Merge "Add missing definite articles in messages" 2023-12-05 23:33:00 +00:00
Siddharth VP bf1d6b3e93 Remove gadgets-edit right, use core editsite{css,js,json} rights instead
With GadgetDefinitionNamespaceRepo, there should be separate rights for
editing gadget json as opposed to editing gadget css/js, so that admins
can be granted the former, while the latter remains restricted to
int-admins.

Reusing the MW core rights for site CSS/JS/JSON seems to make the most
sense here. Protection is now applied via GetUserPermissionsErrors hook
rather than as namespace protection.

For editing any non-CSS/JS/JSON pages in the namespace, editsitejs right
is required.

Bug: T298834
Change-Id: I6ffd5e9467774f1e79ccdce8b6b4739f07be2da8
2023-12-05 20:37:59 +05:30
Translation updater bot 493a7a5dd3 Localisation updates from https://translatewiki.net.
Change-Id: I11b4ef8d7146ea5b8a634636ae6d611183b12441
2023-12-05 09:14:46 +01:00
Translation updater bot 00c22e468d Localisation updates from https://translatewiki.net.
Change-Id: I62f3cfadb62019b716f5c9f51a9010c577b48507
2023-12-04 09:04:15 +01:00
Amir E. Aharoni e2d4e351ad Add missing definite articles in messages
Change-Id: I2c43f1a4a4bc8c98438c0bf8b343efbabb540cd6
2023-12-01 10:44:26 -05:00
Amir E. Aharoni 16b5ee866c Change "package gadgets" to "packaged gadgets"
For consistency between the new message gadgets-validate-json
and the older message gadgets-packaged.

Change-Id: I84f2f11e033ed3a3b6fe855452b34f751e9970b9
2023-12-01 10:05:56 -05:00
Translation updater bot a79ae63c8a Localisation updates from https://translatewiki.net.
Change-Id: I5916d03bd6b986c3eb75146e0f388d06e8f0bd38
2023-12-01 09:39:34 +01:00
Siddharth VP adda8a6649 Show gadget definition validation warnings in Special:Gadgets
Bug: T298334
Change-Id: Id241125b9b8abfb971dfa600ab0df9c6047f2b32
2023-11-30 21:59:04 +00:00
Translation updater bot ceb5a9174a Localisation updates from https://translatewiki.net.
Change-Id: I5190cb31a7028bbfbdd94c5d7993eff06ed071e1
2023-11-30 09:37:59 +01:00
Translation updater bot 9fd869c7a2 Localisation updates from https://translatewiki.net.
Change-Id: I07ccb4abc4772ee8be8ed84c6b256917e1a5cbcf
2023-11-29 08:31:03 +01:00
Translation updater bot 49a12c47e0 Localisation updates from https://translatewiki.net.
Change-Id: Iae953cfe01b3deb01787ee62658352bacc6ae47f
2023-11-27 08:32:21 +01:00
Translation updater bot 2dda194930 Localisation updates from https://translatewiki.net.
Change-Id: I952087d038745e95ebcb52f932a827c073b25aa4
2023-11-13 08:40:55 +01:00
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