Commit graph

427 commits

Author SHA1 Message Date
Translation updater bot c40597533d Localisation updates from https://translatewiki.net.
Change-Id: I6b7e712043ca7a499e71c45951a8a9b49038e2ac
2024-02-01 09:03:42 +01:00
James D. Forrester 1d612045c0 build: Update MediaWiki requirement to 1.42
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I29fd0a17e6f5bf8da5f4a436fbfaa08585218963
2024-01-12 18:33:00 -05:00
Umherirrender 90040f278a Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I45053ede3898b5c886a8182659466d321126ac1f
2024-01-04 22:22:49 +01:00
Translation updater bot 65b0eb6e88 Localisation updates from https://translatewiki.net.
Change-Id: I1595f1b4365b5426e04923859ff2c63071de3316
2023-12-13 08:42:02 +01:00
Translation updater bot 920c058d27 Localisation updates from https://translatewiki.net.
Change-Id: I5a9912953a884960e86a536ae70413c4ae2459a3
2023-11-29 08:31:52 +01:00
Translation updater bot 92a470269b Localisation updates from https://translatewiki.net.
Change-Id: I6da43620c7bc76bb5da3edaa71cb87c88e8022c8
2023-09-25 08:47:08 +02:00
Translation updater bot 7fbfe8564c Localisation updates from https://translatewiki.net.
Change-Id: Id146ad241f876d4d66b0443bdb51b1dc37298868
2023-09-18 08:44:58 +02:00
Translation updater bot 5e9496c6b7 Localisation updates from https://translatewiki.net.
Change-Id: I726e05394061ae081cc48260e61de423bfd73dda
2023-09-01 09:03:39 +02:00
jenkins-bot 84266ef050 Merge "ExtractFormatter: Update for HtmlFormatter 4.0.0" 2023-08-23 16:02:37 +00:00
Translation updater bot f3bc3bbb55 Localisation updates from https://translatewiki.net.
Change-Id: Ic0d3f9d5f3920403f11e2968370f85bba5dffc10
2023-08-23 08:40:38 +02:00
Reedy 47172479bb ExtractFormatter: Update for HtmlFormatter 4.0.0
Bug: T330528
Depends-On: Id785cfd2e00762ca6c1ea80200dd4a3d197640f2
Change-Id: I496d84fab3ee8feee5891ca984f37e90837d857c
2023-08-22 20:50:03 +00:00
gerritbot 71e31619f2 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I09a9c9f6294c9988feb3c2eba46ffde73996b3d3
2023-08-19 18:08:08 +00:00
jenkins-bot 2a12962ecf Merge "build: Update MediaWiki requirement to 1.41" 2023-08-19 09:52:29 +00:00
James D. Forrester 7cf9db11ca build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ica46fa97ca72a58192ff90447f2a72d3d90b4b4a
2023-08-19 14:09:59 +08:00
James D. Forrester 9fbd023a69 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I01b3eb2ff75809582eeb151632fc1633e524ddc1
2023-08-19 14:09:54 +08:00
Translation updater bot 5bf204a410 Localisation updates from https://translatewiki.net.
Change-Id: If46bb978b9de5f206b67f7a2c9afea68076f5eac
2023-08-18 09:09:14 +02:00
Umherirrender ce0bcb5c82 Use HookHandlers for core hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T271032
Change-Id: I612c09264b830fe5588aafdad80a9eebaa66d71b
2023-08-14 19:49:09 +02:00
Translation updater bot 87dc3cb2db Localisation updates from https://translatewiki.net.
Change-Id: Id0105a7cd141aa54cb991fe44382feac3339bbdb
2023-08-14 09:18:44 +02:00
Translation updater bot 2978dbe8b4 Localisation updates from https://translatewiki.net.
Change-Id: I12f0ee07f8b15f40542411761e3e881f54278a9f
2023-08-10 09:42:13 +02:00
Translation updater bot 805d532275 Localisation updates from https://translatewiki.net.
Change-Id: Ic52779b5494cbfbe40b6aad65e3adefc2ae0b273
2023-08-09 09:15:52 +02:00
jenkins-bot d5b4aa677a Merge "Use ExpirationAwareness instead of deprecated IExpiringStore" 2023-08-08 20:15:14 +00:00
Translation updater bot fa161f74f1 Localisation updates from https://translatewiki.net.
Change-Id: I75821bd16fc25ce080cd1fb23381b28adc91280a
2023-08-08 09:01:42 +02:00
Translation updater bot 248ef5f2e2 Localisation updates from https://translatewiki.net.
Change-Id: I2497b3e8812f619d3d6c52e3391387e56e33bc37
2023-08-07 08:39:55 +02:00
Derick Alangi 627f65ebff
Use ExpirationAwareness instead of deprecated IExpiringStore
IExpiringStore has been deprecated since 1.35 and we can either
use the ExpirationAwareness or StorageAwareness constants where
necessary.

Change-Id: Ida557b3180eb5e7ebae46968142b4f154f26ffbc
2023-08-06 22:30:33 +01:00
Umherirrender cd565f856a i18n: Split apihelp for parameter prop=extracts&exsectionformat=
Easier to translate
There is no visible change on Special:ApiHelp/query+extracts

Bug: T285545
Change-Id: Ide7650148ea3bbf9fa85fb052090f3b13f1b42c5
2023-08-05 02:30:49 +02:00
Translation updater bot fc4f063fc1 Localisation updates from https://translatewiki.net.
Change-Id: I96b0633e1c922a58a750adcd5f49c9ab5cdecc5d
2023-06-26 12:41:07 +02:00
Umherirrender 8af1ee45ec 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: I381bbebcaa7563b046cfbfdbd8985c99bc07ef97
2023-06-24 00:24:02 +02:00
libraryupgrader ad0543fb65 build: Updating grunt-banana-checker to 0.11.0
Change-Id: I44a8cef927ce66251bfaa90067bcb22178ce47e2
2023-06-02 03:59:11 +00:00
Umherirrender b9f9e827be tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: Ifea9699646a5831471f4d536d0074d9976e1ac42
2023-05-20 14:13:35 +02:00
gerritbot bdd77c5c06 Update moved class FauxRequest
See T321882. Moved in I832b133aaf61ee

Bug: T321681
Change-Id: I6ce2acc3961db1b9663efd62ebdcf57c905caaf0
2023-05-19 10:25:20 +00:00
libraryupgrader 67f27e7dbc build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I876de877b79934e454013d8760750586933ff34e
2023-05-05 18:09:27 +00:00
libraryupgrader 7815bc6530 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Icfff05cd76042e6aa33d1bb11a07e6b97bd6b263
2023-04-29 12:35:17 +00:00
jenkins-bot 74baaa7ce1 Merge "Skip <h2> in TOC when extracting first section" 2023-03-20 09:23:31 +00:00
Thiemo Kreuz 60e1c5ad83 Skip <h2> in TOC when extracting first section
This piece of code is only relevant in case when:
- the intro section is requested (either in plaintext or html);
- the parse result for the full page is available in the parser cache;
- the full extract is not available in the TextExtracts WAN cache;
- the intro is also not available in the TextExtracts WAN cache.

In this case getFirstSection() is called with the parser output,
which is different from the the convertText() output it is called
with in other code paths, and still contains <h*> tags. A quick
regex is used to extract the first section. This stops at any <h2>.
A TOC also contains a <h2> (which will be removed later via
$wgExtractsRemoveClasses). This one needs to be ignored in case
the TOC is placed before the first section using e.g. the __TOC__
keyword.

The patch changes the regex so it ignores a h2 with
id="mw-toc-heading", but keeps working in plaintext mode when <h*>
tags are not present  (the code path when the intro section is
requested, and the full extract is available in the TextExtracts
WAN cache but the intro extract isn't).

Bug: T269967
Change-Id: I0a495d06cf1725744e556e81f17047fb53f53521
2023-03-20 07:40:07 +00:00
libraryupgrader 2a5abdb2d0 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: I2a41cf3d1d5f0c30240474a3d513a3170c0b7656
2023-03-16 08:34:25 +00:00
libraryupgrader 15667b2c37 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I3129f0ec6c8227d7d988ba12b40fe6fe91634d3b
2023-03-12 12:00:05 +00:00
Translation updater bot 2054e8fa8a Localisation updates from https://translatewiki.net.
Change-Id: I1f33596f31be4aac2ded317d5b8758ac1c1b2ed8
2023-01-26 08:52:47 +01:00
Translation updater bot 50f37c89f8 Localisation updates from https://translatewiki.net.
Change-Id: I22d7e00f4d2ce1e834e041126dc5a06a6a60fadc
2023-01-23 08:24:14 +01:00
Translation updater bot 6a92afb6f4 Localisation updates from https://translatewiki.net.
Change-Id: I49d4a7b5f0efa410cf3e09d9bb915a181eb21b82
2023-01-18 08:30:38 +01:00
Translation updater bot 79756fd3ff Localisation updates from https://translatewiki.net.
Change-Id: Id01f9d86fa7d41e4fa73ae87f44154f0276ad2ad
2022-12-21 09:18:13 +01:00
libraryupgrader 88ce28f124 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: I6a046a4d8515292968a512b581559071203c0a5d
2022-11-16 23:38:45 +00:00
Translation updater bot 95a50762da Localisation updates from https://translatewiki.net.
Change-Id: I26a781021cc793f6a2ce47d71ffdad90a8fdffcd
2022-11-15 08:24:42 +01:00
Translation updater bot 1afce6dcd9 Localisation updates from https://translatewiki.net.
Change-Id: If9b0ecff525df6dc4b818185ada4620e4c9d0fcc
2022-11-14 08:11:19 +01:00
Reedy 0171e10a04 ApiQueryExtractsTest: Fix string interpolation
Bug: T314096
Change-Id: I8fb67f318c2f4b30dd2ad05a5e1d035017e0b022
2022-11-04 17:06:23 -06:00
libraryupgrader dd58209de9 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: Id3765e6ceef16d96e833133993c44ee5099dd802
2022-10-21 20:30:29 +00:00
libraryupgrader 78e12b4715 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: I0fd75af83db1bab69b9387c523b46d8a425a7b18
2022-10-09 11:14:34 +00:00
libraryupgrader 7cacab45c4 build: Updating grunt-banana-checker to 0.10.0
Change-Id: I66206308ff9775dfc811c818406f907959538e5b
2022-10-07 07:30:49 +00:00
Brian Wolff c77adce065 Tests: Use more complete mock to prevent php8.1 deprecated warnings
Fixes:

1) TextExtracts\Test\ApiQueryExtractsTest::testMemCacheHelpers
strtr(): Passing null to parameter #1 ($string) of type string is deprecated

Change-Id: Id39cb89bb5d49fbea543181da678b191f70311ac
2022-10-03 10:39:48 -07:00
Translation updater bot 1ce6d8861a Localisation updates from https://translatewiki.net.
Change-Id: I124f67cc48b6f8c2f6384e37379266d87fd64af5
2022-09-28 08:22:59 +02:00
Arlo Breault d67f9a73d5 Remove figures from text extracts
Bug: T318727
Change-Id: I304d4b794a0f27eb78ef013f911c444fc9a80cf1
2022-09-27 13:13:24 -04:00