Commit graph

2083 commits

Author SHA1 Message Date
Translation updater bot 213fec72c3
Localisation updates from https://translatewiki.net.
Change-Id: Id84f564c6ac22f13e9f1f8aa6629909b508cc2f1
2024-12-17 07:06:50 +01:00
Translation updater bot 15b0088b42
Localisation updates from https://translatewiki.net.
Change-Id: Ief64abee849e9ff626eba58f316c9a54e69171a4
2024-12-10 06:48:35 +01:00
libraryupgrader 09a8e24956 build: Updating cross-spawn to 7.0.6
* https://github.com/advisories/GHSA-3xgq-45jj-v275

Change-Id: I87aaab481dd5758112587ada8003197778dee22d
2024-11-24 10:00:38 +00:00
Translation updater bot 1b27a7323d
Localisation updates from https://translatewiki.net.
Change-Id: I40fb5002497a9ef86f46ca067f4cc1acfa5d9b60
2024-11-19 07:14:31 +01:00
Andre Klapper 169234018b Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP
8.4. The explicit nullable type must be used instead.

Bug: T376276
Change-Id: I9cafaa51999fd2740da6c4fec9314fb9ace7c327
2024-11-14 23:51:36 +00:00
Translation updater bot 2424d29425
Localisation updates from https://translatewiki.net.
Change-Id: I05b6670d0864287695ac35df2845d390b74bf996
2024-11-12 07:18:55 +01:00
libraryupgrader be753109f1 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Usage.NullableType.ExplicitNullableTypes

Change-Id: I0bbe6f5652836257d4b23dfdc741ff19e3b047cc
2024-11-11 07:23:09 +00:00
Translation updater bot 666c05dd6a
Localisation updates from https://translatewiki.net.
Change-Id: I88284a333809685adeed9a86ea227fa894ace53b
2024-10-21 09:20:50 +02:00
Umherirrender 9231163147 Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: I28cb0daddf167e6e713b756e1f6ad0bbe98858ec
2024-10-20 11:54:11 +02:00
Translation updater bot f5f0eaf705
Localisation updates from https://translatewiki.net.
Change-Id: Ie4121863a5a7c7ce3621c9b0748ac48513106f3c
2024-10-18 09:25:34 +02:00
Msz2001 28f0a05717 Add namespace description for Special:NamespaceInfo
Bug: T373070
Change-Id: Iaa1389fff9235960e91a68cc6728eabd77da1e13
2024-10-17 20:36:42 +00:00
Pppery 273670ff92 Set namespaces for dtp
Bug: T371068
Change-Id: I6a74287a75ca84d7e571e688e7046fbb6dbc87f3
2024-10-17 16:55:22 +00:00
Translation updater bot b80e3eb747
Localisation updates from https://translatewiki.net.
Change-Id: I7df4fad8374d711e501991d508287f33d95dc259
2024-10-14 09:30:14 +02:00
Siddharth VP f354b0eceb debug console: remove unused CSS styles
Change-Id: I24a08a605a60f7e369b76c4a5c3b83330a01a054
2024-10-08 16:41:12 +00:00
Umherirrender cc9cdab7e6 build: Run stylelint for less file
less is used since 527c461110

Change-Id: I982471e66eb40d797c529d17a2b8441996757f87
2024-10-05 00:07:44 +02:00
Siddharth VP 527c461110 Support dark mode in Scribunto debug console
* Use Codex tokens instead of hardcoded colors, picking close ones where
 there's no exact match
* Remove unnecessary background styles that will be inherited.
* Add border on input box - looks a bit off (at least in dark mode)
without it.

Bug: T370701
Change-Id: I8076b00aff57dea177d23aaa3698471714ac4a93
2024-09-30 22:18:44 +05:30
Translation updater bot 8c3408f11b
Localisation updates from https://translatewiki.net.
Change-Id: I1a77ff33712c956b1555bebf5d9d47d28262bf21
2024-09-30 09:21:51 +02:00
C. Scott Ananian 248e886dc0 Use class instead of id for scribunto errors
This avoids having multiple HTML elements with the same `id` attribute
when certain Scribunto errors reoccur more than once on the same page.

Bug: T375539
Change-Id: I123a0f0046a616f63506f096651ae917bbc65cc5
2024-09-24 15:47:25 -04:00
Translation updater bot ba5588a2b9
Localisation updates from https://translatewiki.net.
Change-Id: I02495cb751d2fa20c45dee9c395153998b68f1cc
2024-09-24 09:29:48 +02:00
Umherirrender 7c1ea4284e build: Use inline ignore for MediaWiki.Usage.ForbiddenFunctions
This avoids addition of new code with the function,
or at least it gives extra attention on review when new code also uses
the inline ignore

Change-Id: I17981b52d9f96ee5f19ba46cf370c7477c81a72a
2024-09-23 17:40:51 +00:00
Siddharth VP 286add50b5 Don't record transclusion of current page from title methods
When the content or categories fields are accessed for the title object
of the current page, skip adding an entry in templatelinks.

* Cuts 5.9 million rows from enwiki templatelinks, where citation
templates use :getContent() to know what date format to use while
formatting citations.
* Prevents confusion about why a page is shown to transclude itself,
frequently brought up on technical support forums.

Change-Id: Id6a5e00572031f4a7258c99c6dc0f802385ee5fe
2024-09-23 16:28:03 +00:00
thiemowmde a630e3d129 Make use of ??=, ?: and similar operators where possible
The main benefit of these operators is that they avoid repeating
parts of the code.

Change-Id: I86ea0eb02715ad5b7c62a71849309ed7095c5972
2024-09-21 20:00:50 +00:00
Isabelle Hurbain-Palatin b1cc0225a9 Set language on ScribuntoContentHandler new ParserOutput
I have reproduced at least one instance of the message "ParserOutput
does not specify a language and no page language set in helper." by
trying to query a rest.php html endpoint on a module with the
scribunto-doc-page-does-not-exist message deactivated (which is the case
on wikidata).
I do not know if that path is the one that triggers the current large
amount of these messages coming from Wikidata, but it looks reasonable
to fix that one at least.
I'm also not sure this fix is the right one - I'll let people with more
Scribunto and ContentHandler experience chime on that :)

Bug: T362312
Change-Id: I26c1683c803f5cafd08de83e8b428031414d1c4e
2024-09-12 11:49:40 +02:00
Nemoralis a01cc2f2f8 Added Talysh namespaces
Bug: T367009
Change-Id: I5dd53d1d7f535169772833828aac5fe01dcdb6a9
2024-09-11 17:36:14 +00:00
Siddharth VP c08452684c Rename SyntaxHighlight RL module
Bug: T368166
Depends-On: I999937c1f6303ecc64adb6285e73a9ce10f67bd8
Change-Id: I68d13d6d3fed7c70d795b0864bf5fb9ef1409c0a
2024-09-09 19:35:26 +00:00
Ebrahim Byagowi 27136f2afa Avoid use of deprecated wfGetUrlUtils
Change-Id: Ia36e0cf4a390f32fad7da55a503ac15afa85317a
2024-09-08 09:47:06 +03:30
Translation updater bot 484338c20d
Localisation updates from https://translatewiki.net.
Change-Id: I3ca2ad1cc8b9bee16f10af115f3b32a7b2437e5a
2024-09-02 09:21:31 +02:00
libraryupgrader 8f4409c633 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: Iecb078280bd2e2b1698501d7374025618d6a5142
2024-08-31 07:19:52 +00:00
James D. Forrester bb71303a81 Replace use of deprecated global URL functions with wfGetUrlUtils()
This is a quick fix rather than the proper DI fix.

Bug: T319340
Change-Id: I9e3bd0049b28efc634e1f394a487f86e27ef9e0d
2024-08-29 13:35:12 -04:00
thiemowmde 40ebea2313 Make use of MainConfigNames constants in tests
Change-Id: I55aa25268b9d2f48f90b6f79ed4309c9b2355bd9
2024-08-27 20:36:11 +00:00
thiemowmde 5ced07c366 Improve a few PHPDoc type hints
Mostly unspecific arrays that can be made more specific. This patch
intentionally doesn't touch any code, only comments.

Change-Id: I5b4690e6160c6c543f9fcb2f62c41f6329d48bdb
2024-08-27 16:54:41 +00:00
thiemowmde ffafba0695 Remove meaningless return true from hook handler functions
Returning true is the same as returning nothing. It's only meaningful
when a hook handler can also return false. Some actually do this.
I'm not touching these.

See Icccf60b for the reasoning why the added `@return void` are
beneficial.

Change-Id: I6de7addee853ff183058e6c84e87a5b275c785e8
2024-08-27 08:47:46 +00:00
James D. Forrester 289c7004e0 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I22ba3c032454a8a68331b1e373a353585569359f
2024-08-24 14:38:32 +00:00
C. Scott Ananian 13b7e5ab31 Add title.content alias for Title::getContent()
No other access in the Title class contains a `get` prefix, so this
makes the title methods consistent.

Bug: T373047
Change-Id: I4a3a7498462b7b3b6143dc61f529e526ccb112e2
2024-08-22 11:30:26 -04:00
Translation updater bot 9c4fc5a95c
Localisation updates from https://translatewiki.net.
Change-Id: Ife509bc2a69828bb34ab689773a3908dd3914fa5
2024-08-19 09:24:55 +02:00
Translation updater bot ee1383994c
Localisation updates from https://translatewiki.net.
Change-Id: Ie9d452501298d0c925e4e7cd2dc4f60a683d87ea
2024-08-14 09:23:38 +02:00
libraryupgrader 94b4f0463f build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: Ic23a06fd70f599665371fa35e10cb4a1ca26caac
2024-08-12 16:16:21 +00:00
Translation updater bot a769c7410f
Localisation updates from https://translatewiki.net.
Change-Id: I400f98094ec979815c371de58aedfd741ccdb98f
2024-08-08 09:20:34 +02:00
dreamrimmer 22a86e47b1 Remove alias for the Module namespace in Hindi
Bug: T366235
Change-Id: I33ce7a5a9844ca031c675e4c8d7ca67da473701e
2024-08-07 18:33:29 +00:00
Siddharth VP a414aba445 Expose page categories to Lua
Added `categories` property in the lua title class which fetches page
categories. Analogous to getContent() which fetches page content. This
increments the expensive function count.

This enables category-specific editnotices (T85372) and other use-cases.

Bug: T50175
Change-Id: Ie8e0762c537374e6086abe9f9916b8200582776a
2024-08-07 16:50:07 +00:00
Translation updater bot db4691da48
Localisation updates from https://translatewiki.net.
Change-Id: Ic856b0d7efe0b0bc73540ceedb0d1941ea19b551
2024-08-06 09:48:36 +02:00
Amir E. Aharoni df6c79969d Add namespace translations in Iban (iba)
Provided by Song GK at
https://translatewiki.net/w/i.php?title=User_talk:Song_GK&oldid=12540720#Namespaces

Bug: T367991
Change-Id: Idc62fcbdc89dd20a2f56f07c5550020805bfbd46
2024-07-27 07:06:37 +00:00
Translation updater bot ec0b80e57e
Localisation updates from https://translatewiki.net.
Change-Id: Ib7bf8da35df80073a7d1d2a604ceaf01d80be0f7
2024-07-26 09:46:36 +02:00
Translation updater bot 7f39028936
Localisation updates from https://translatewiki.net.
Change-Id: I9f6aa8ac83dd8b6efc9d6b779cea294ea15c3ce9
2024-07-16 09:41:17 +02:00
Mark A. Hershberger c684be1e52 Capture stderr from ‘lua -v' to get the version number.
Bug: T368832
Change-Id: Iff6e908686ee0e81088a81316927d1b250e6af1a
2024-07-08 21:11:23 +00:00
Translation updater bot cb93053fa3
Localisation updates from https://translatewiki.net.
Change-Id: I9c2c0f96cde633c61e9b78fead81106674fb22d2
2024-07-08 09:33:54 +02:00
Translation updater bot 849c72b537
Localisation updates from https://translatewiki.net.
Change-Id: Ida02a8d63a50a0f0b43038fa39953d2b8619b5cb
2024-07-01 09:26:18 +02:00
libraryupgrader 9573bab523 build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: I8907069eeecff4030b860a9770144146a1ccc95c
2024-06-21 23:09:17 +00:00
Bartosz Dziewoński ce1fa91c54 Don't depend on Message implementation details
You're not really supposed to know how Message represents the
parameters internally.

Change-Id: I5767dcc96af77b21655609cb9ce43bcaf9e07e19
2024-06-17 16:25:22 +00:00
Harsh Rathod b4a7d5c8ca Localize "Module" namespace to Hindi
Made the earlier semantically-correct Hindi localization an alias
and added the suggested Hindi localization preferred by the Hindi
Wikipedia community members the primary Hindi localization.

Bug: T366235
Followup-To: I811594311abb4e1d3e44ce3b284d11f72836cbdd
Change-Id: I2f8c7b1dfe22f210773507e86f4b12edd3fd196b
2024-06-17 16:14:21 +00:00