Commit graph

2333 commits

Author SHA1 Message Date
libraryupgrader 8425408661 build: Updating jsdoc to 4.0.2
Change-Id: I722eeddb1748cd822a18c01ccc0db409bd923232
2024-02-16 11:24:25 +00:00
James D. Forrester fb383cc0f2 Replace wfGetDB() with ICP getReplicaDatabase()
Bug: T330641
Change-Id: Ic6ea216ff3365f88288d6a44b723e6dca0b15d49
2024-02-14 11:08:04 -05:00
Translation updater bot 32a3acd95e Localisation updates from https://translatewiki.net.
Change-Id: I0a8832da049de5635aafdccc09d8b210a494ed79
2024-02-14 08:19:26 +01:00
libraryupgrader 2e0f4426ac build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* eslint-config-wikimedia: 0.25.1 → 0.26.0
* debug: 3.2.6, 4.3.4 → 3.2.7, 4.3.4
  * https://github.com/advisories/GHSA-gxpj-cx7g-858c

Change-Id: Iaa4643e6011772378fe3274166410b3eea701061
2024-02-13 03:26:37 +00:00
Translation updater bot af7dfd9ee4 Localisation updates from https://translatewiki.net.
Change-Id: I668b21b364e55a2577eb0b535603539e793d07b5
2024-02-05 08:50:35 +01:00
Translation updater bot 76385cb3c7 Localisation updates from https://translatewiki.net.
Change-Id: Ia1e443c83c96fb8bd1d7f08c44d2e6247eb52daf
2024-02-02 08:54:18 +01:00
Translation updater bot 906c78f460 Localisation updates from https://translatewiki.net.
Change-Id: Ibfd71b76a9564953589f893d9b22e43a2c505ca9
2024-02-01 09:03:42 +01:00
Translation updater bot eb06e50ecc Localisation updates from https://translatewiki.net.
Change-Id: Ia754dff23e0f83f9fbc6953c8f02825a63e487e7
2024-01-28 16:08:06 +01:00
Umherirrender b43ae79b22 Drop RL targets definitions from module definition, no longer honoured
Bug: T328497
Change-Id: I4cfef72003a11af2763d52428d72da012e34c69c
2024-01-23 21:56:06 +01:00
Translation updater bot d4e8843ff2 Localisation updates from https://translatewiki.net.
Change-Id: I56ecb1392ba1a869a7b1c2f5d4530bbffc07aa0c
2024-01-18 09:27:23 +01:00
Fomafix e19cb1d9db Use MediaWiki\ResourceLoader\ImageModule instead of ResourceLoaderImageModule
ResourceLoaderImageModule is deprecated since 1.39.

Change-Id: I536c4ae981aac43d7cdefc3176b766c303aab22e
2024-01-13 20:29:41 +00:00
Translation updater bot 3ff1a16370 Localisation updates from https://translatewiki.net.
Change-Id: I876c539aad80ef560fa1324dad44412cef2b1ad5
2024-01-11 10:06:17 +01:00
Translation updater bot 81bdd4681f Localisation updates from https://translatewiki.net.
Change-Id: I49f10563ba3408cca9cb0f55a09f5df9cacf9207
2024-01-10 08:33:28 +01:00
Umherirrender b626bd18d3 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements done manually

Change-Id: I8e049e495a0d0f3a0e1ee02a8252354b12604bf9
2024-01-04 21:53:10 +01:00
Translation updater bot c217eee567 Localisation updates from https://translatewiki.net.
Change-Id: I59a1ed28bdfde618e331e668cf7c6efdd58d864f
2023-12-29 19:23:09 +01:00
Translation updater bot d4cc2307bd Localisation updates from https://translatewiki.net.
Change-Id: Iae5a25a948c9e490e84a49a6305185a57da0ff3a
2023-12-28 14:50:32 +01:00
Translation updater bot 38c8d5974f Localisation updates from https://translatewiki.net.
Change-Id: Ib12230b95cd2fa8788f08d22f1be991e0493a3ea
2023-12-22 17:46:57 +01:00
Translation updater bot 93714ba0d4 Localisation updates from https://translatewiki.net.
Change-Id: I716950771c5f8735c5895c2a3ed592130e689b7f
2023-12-21 19:46:00 +01:00
Translation updater bot 02e3ce7e6c Localisation updates from https://translatewiki.net.
Change-Id: I17a23be511a9a636f6d7982a7195270922b96aa2
2023-12-14 08:28:20 +01:00
thiemowmde b703aa71e6 Remove misplaced message keys from a comment
These messages are still used in ParamImportWidget, originally added
via I985ea03 in 2014. The comments have been added much later, see
Ib53aa55. This was really only a copy-paste mistake because of the
very similar message keys.

Change-Id: I78e1a8aec200299e72ce8354ea722ad9c1fd27c0
2023-12-11 15:11:21 +01:00
Translation updater bot f58acc95f7 Localisation updates from https://translatewiki.net.
Change-Id: I8eafff3e0470f1567cd9165b7f72644392c9bd82
2023-12-08 14:46:38 +01:00
Translation updater bot 79e754ced3 Localisation updates from https://translatewiki.net.
Change-Id: I89007bd4f790a933db66f2d04d98fd480994b309
2023-12-07 10:03:16 +01:00
Translation updater bot efb1c49a39 Localisation updates from https://translatewiki.net.
Change-Id: I6230aba87f1efa3bc4905adbb1676c99520a533d
2023-12-04 09:06:05 +01:00
Translation updater bot 92b6486416 Localisation updates from https://translatewiki.net.
Change-Id: Id42759e2f580233c6100b4c0250c96d4ecf6c740
2023-12-01 09:40:56 +01:00
jenkins-bot ca8061b4a5 Merge "Turn deprecated/required/suggested checkboxes into select widget" 2023-11-30 10:53:32 +00:00
Translation updater bot 8e422b33ef Localisation updates from https://translatewiki.net.
Change-Id: I2f39c5aa42e859fbdbc10c1e40a5944f48aabd8f
2023-11-27 08:33:36 +01:00
Translation updater bot faced39260 Localisation updates from https://translatewiki.net.
Change-Id: Id98b83891161173325c969df66cd0bc8b1142b93
2023-11-23 11:57:36 +01:00
Thiemo Kreuz b2574932e9 Turn deprecated/required/suggested checkboxes into select widget
* deprecated means "please do not use this".
* required means "you must use this".
* suggested means "it's a good idea to use this".
* optional means "you typically don't need this".

There is no combination that makes any sense. They are really
exclusive to each other.

Still we have to keep the three checkboxes for backwards
compatibility reasons. It was always possible (and will probably
continue to be possible) to have more than one of the three fields
enabled. While users like VisualEditor will make a good guess (e.g.
ignore the rest when "deprecated" is checked) I really think we
should not attempt to hide (and auto-fix) it in this dialog. That's
why the proposed code continues to show the old checkboxes when
more than one is checked.

Bug: T202851
Change-Id: I994268d658602761b180f489bedb50b91fe0c419
2023-11-16 14:06:06 +01:00
thiemowmde 10a43a9ae3 Minor code cleanups in Hooks class
Change-Id: Ied3d5241df04b3fd070319070c0addfd3856e3bf
2023-11-16 13:59:24 +01:00
Translation updater bot 7d010a616f Localisation updates from https://translatewiki.net.
Change-Id: I001adb7d1a083a83da6b698c1a1b8a0926c63fb6
2023-11-13 08:42:25 +01:00
Bartosz Dziewoński f2a60308aa Use expression builder instead of addQuotes()
Bug: T350960
Change-Id: Ib994ad36427f1404e3cc011a6187799842e08df0
2023-11-11 00:30:41 +01:00
thiemowmde b8e437a38d Introduce prop var to reduce code duplication in Dialog.js
Most of the code is already using a "prop" variable for the same
purpose. I hope that following the same pattern everywhere makes the
code easier to read.

Change-Id: I00e344b9041e1cb7e2dee129b17549959f32e4d9
2023-11-07 11:48:08 +01:00
Translation updater bot d8af17875e Localisation updates from https://translatewiki.net.
Change-Id: I2b16157769568bd7eb92dce06edbb42d4922e235
2023-11-06 08:57:59 +01:00
Translation updater bot 7fb278fa94 Localisation updates from https://translatewiki.net.
Change-Id: I465d55200b72f34b071a1574a0e0d725fc7dbb7b
2023-11-01 09:09:02 +01:00
jenkins-bot aeb7f4eb4b Merge "build: Update linters" 2023-10-26 15:26:11 +00:00
Ed Sanders a180f5db36 editTemplatePage dialog: Fix typo in comment
Change-Id: I3db668ad01c2f78ca2c8873660b7685d7e6e6918
2023-10-26 13:58:38 +01:00
Ed Sanders 225e9ec1c0 Simplify multiline config generation
Change-Id: I4551c90ef8360d42c8b74848ce437e20bb792a55
2023-10-26 13:56:23 +01:00
Ed Sanders a53a1bfa5e build: Update linters
Change-Id: I1d32a8c331d7abae89d8fa539e0af4ee96935575
2023-10-26 13:52:08 +01:00
Bartosz Dziewoński f150c176e4 TemplateData editor: Use built-in 'allowLinebreaks' option
New in OOUI v0.48.2.

Unlike the old version, this also prevents inserting line breaks by
copy-paste and other methods.

Change-Id: I2fe1b7cfe70ebb6b66a9dfdf012522b574f6e774
2023-10-25 08:27:57 -04:00
Translation updater bot a70ac9aa8a Localisation updates from https://translatewiki.net.
Change-Id: Ie23e695c561e9d3c7bd5e2cee5badb5e1d0da031
2023-10-24 09:38:44 +02:00
Umherirrender 46d9842652 Replace empty() with falsy check
empty() should only be used to suppress errors
When the type of the variable is array,
a falsy check is the same (checks for null, false and empty array)
Found by a new phan plugin (T234237)

Change-Id: I17e48498c9be9c542b48a9d77c5574fba9f38d4d
2023-10-21 21:58:58 +02:00
Translation updater bot 3518d97b9c Localisation updates from https://translatewiki.net.
Change-Id: If5a6e8fadca05179a89426b821411805da629fad
2023-10-13 08:56:51 +02:00
Translation updater bot 0fbd00556e Localisation updates from https://translatewiki.net.
Change-Id: I67cf7d3090d089e2336cc449f7957dd23a253f37
2023-10-09 08:57:09 +02:00
Translation updater bot f4bbba759a Localisation updates from https://translatewiki.net.
Change-Id: I8b9669cda5a52f31a7b086dca676443f59090b5d
2023-10-02 10:58:24 +02:00
jenkins-bot 3485282894 Merge "Inject MainConfig service to TemplateData hooks" 2023-09-26 03:44:09 +00:00
thiemowmde 3c360bfeea Remove bogus updateParamDetailsLanguage call with no language
Turns out this was always pointless. Nothing the method does makes
sense without a language. A default language is only choosen much
later as part of getSetupProcess, and the method called a second
time, this time with a language.

Issue introduced a long, long time ago and finally surfaced via
Ifcbb877.

Bug: T238329
Change-Id: I47c8ce16107ebe7a1d955665dc890bef80ec892a
2023-09-25 14:42:01 +00:00
Translation updater bot 9fd7a035af Localisation updates from https://translatewiki.net.
Change-Id: I960fe04636c3365f8a85587363c2376106ab41ea
2023-09-25 08:47:06 +02:00
Sam Wilson ab3a80555b Inject MainConfig service to TemplateData hooks
Removes the global config variable.

Change-Id: I67c266a3f5189365de506230d1a7064a7427bff6
2023-09-25 10:40:05 +08:00
thiemowmde f302f65dbb Use correct BCP 47 language codes in lang="…" attributes
A small mistake made in I7a82143. This is only relevant for very few
(but critical) language codes. For example, the dialog allows to add
the MediaWiki code "zh-classical". This needs to be translated to
"lzh", but only when we use it directly in HTML.

Bug: T238329
Change-Id: Ifcbb877fb6a348937e85a82459e924548f5ca856
2023-09-21 17:33:41 +02:00
jenkins-bot 10e1c26580 Merge "Simplify client-side translateObsoleteParamTypes implementation" 2023-09-21 06:18:34 +00:00