Commit graph

1740 commits

Author SHA1 Message Date
Fomafix 5d52baf48b ParserFunctions: Use Parser::msg instead of wfMessage
Change-Id: Icb9fd404d7702922d7d9f4ae5eceb41887be8b97
2024-10-28 20:42:25 +00:00
jenkins-bot 8a3a8de07a Merge "Use PHP type hints" 2024-10-28 18:20:05 +00:00
Translation updater bot eae41a3f1d
Localisation updates from https://translatewiki.net.
Change-Id: I4818936a58b4cded6690019f3fda5cefb9aeb20f
2024-10-25 09:51:40 +02:00
Fomafix 43ea305f33 Use PHP type hints
* Add PHP type hints where possible.
* Remove @var, @param and @return if redundant to type declaration.
* Use explite type cast to int for boolean array index.

Change-Id: I3531b3f735327b5c427f1fc434adfb495b1c743f
2024-10-21 10:56:12 +00:00
Umherirrender 36d44c823f Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: Ica9e853f7e19f0f60960ac76d7ee71cba74d0346
2024-10-20 11:15:08 +02:00
Fomafix 4bcd4ac8cb Use namespaced PHP classes for extension Scribunto
This change depends on the Scribunto change
I74fd43f7920c8772e9078f745ac6062d5461a7f1 included in REL1_40.

Depends-On: I74fd43f7920c8772e9078f745ac6062d5461a7f1
Change-Id: Id4156a8934583971df6b449d13f3d8eb6cee6368
2024-10-13 12:52:04 +00:00
Translation updater bot 6930fe4bc3
Localisation updates from https://translatewiki.net.
Change-Id: Icf62c1c055f4bfc9f8434fd41f6f0868d68c4b97
2024-10-08 09:44:32 +02:00
Translation updater bot 0bec579e3b
Localisation updates from https://translatewiki.net.
Change-Id: I43150836740fec38656d7074875a7f07db811a0d
2024-10-02 09:24:32 +02:00
James D. Forrester 279e0817f8 build: Update MediaWiki requirement to 1.43
All extensions in Wikimedia production are expected to track MediaWiki's release directly.
Now that we're no longer artificially holding this back for Fundraising, we can align.

Change-Id: I341ea0143a73bcc705c4db551e20d86d5c40baa1
2024-09-25 09:24:02 -04:00
jenkins-bot b1a3f3c00b Merge "Replace moved Title class uses, now MediaWiki\Title\Title" 2024-09-25 10:10:38 +00:00
Tim Starling 806ba2f110 Proper timezone tests
Bug: T223772
Depends-On: I8498527c276288feae854868a8f4b1f3205a49e8
Change-Id: Ibdc51f607042b74c648367f05066c8297f3cf0a1
2024-09-23 20:50:58 +00:00
James D. Forrester 211f7e0a5d Replace moved Title class uses, now MediaWiki\Title\Title
This raises compatibility to MediaWiki 1.40+.

Change-Id: I85ffdd312ee3017c2197dd0375178d49115072a4
2024-09-23 16:50:37 -04:00
Translation updater bot 8a845602ec
Localisation updates from https://translatewiki.net.
Change-Id: I3217745df830c8ca4fa2e99127a71368b37980b7
2024-09-23 09:22:22 +02:00
Translation updater bot 039df002dc
Localisation updates from https://translatewiki.net.
Change-Id: I38bc7de01f897433356ed063e4034bc8119df783
2024-09-12 09:18:13 +02:00
libraryupgrader 1be0689170 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I6f6b324c3a504bf9e15d5f8a30bef10dc6127c3f
2024-08-25 08:02:33 +00:00
Translation updater bot 419bee84d4
Localisation updates from https://translatewiki.net.
Change-Id: I7323547d772fc4543465e1f34fe6ce2f1638500b
2024-08-23 09:46:45 +02:00
Umherirrender 7352d40891 Add missing documentation to class properties
Change-Id: I904de853c11209749b7b31e52e99a1dc5ac46aaa
2024-08-19 21:08:44 +02:00
Translation updater bot a8832eae15
Localisation updates from https://translatewiki.net.
Change-Id: Icefdd46ca93698c536cefc9c9f8bb82386343744
2024-08-13 09:51:44 +02:00
libraryupgrader 26cf8e0659 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I6691639d82898e461df0d75b14b24c9e71c7948f
2024-08-12 01:36:55 +00:00
Translation updater bot f649783e60
Localisation updates from https://translatewiki.net.
Change-Id: I626e5bb31f8e444918d7881c0f64e15bb0fea5c6
2024-08-06 09:48:16 +02:00
Translation updater bot dd9ecd4758
Localisation updates from https://translatewiki.net.
Change-Id: I44ac132ce8dd0f6a9cc0d9005fede8d11c3e906e
2024-08-05 09:25:36 +02:00
Translation updater bot c8d958cb4b
Localisation updates from https://translatewiki.net.
Change-Id: Ib1dd0bee992ee9d3896beab47b91eae102971ca7
2024-07-30 09:44:09 +02:00
Translation updater bot e20d300e16
Localisation updates from https://translatewiki.net.
Change-Id: I4ecb512745544d6176b562be5a0196f93c5830c1
2024-07-29 09:28:03 +02:00
Translation updater bot 60a60f5937
Localisation updates from https://translatewiki.net.
Change-Id: I1b2bc9d51d8c43ab3945b2e9fa2cfe3248a32732
2024-07-25 09:19:44 +02:00
Translation updater bot 4b14ab87aa
Localisation updates from https://translatewiki.net.
Change-Id: I550b7542a2544a9ea24622b477a7b2f926870544
2024-07-24 09:23:29 +02:00
Tim Starling 06f07b0000 Add parser functions giving access to standard date/time formats
Add parser functions #timef and #timefl, giving access to the standard
date/time formats of any language.

StubObject::unstub() is no longer required since the user language is
unstubbed in ParserOptions::__construct().

Bug: T223772
Change-Id: If158f45aad67ff017f9cd15889915b226e03f50c
2024-07-23 13:10:59 +10:00
Translation updater bot b492ad2a0d
Localisation updates from https://translatewiki.net.
Change-Id: I6a830ff284a588e0ee0e3202b4238fb6f9caab76
2024-07-19 09:41:30 +02:00
Translation updater bot 8ebfa2b459
Localisation updates from https://translatewiki.net.
Change-Id: Ie17ed70cc371be927882aad380cba4608620f2e8
2024-07-16 09:40:59 +02:00
Translation updater bot 7544755bc2
Localisation updates from https://translatewiki.net.
Change-Id: I70abd1b5dfd27a2679bdd7adb063b0e8edf6c57f
2024-07-08 09:33:39 +02:00
libraryupgrader 55d9276c89 build: Updating eslint-config-wikimedia to 0.28.2
Change-Id: I8986ab04d12e9fb4564fc82515cc85083ed8bfb1
2024-06-21 10:13:27 +00:00
Translation updater bot ea4d4d94ee
Localisation updates from https://translatewiki.net.
Change-Id: I90f476060ec789fdc52d725161d3dcb6248aba9a
2024-06-17 09:32:17 +02:00
Translation updater bot 1430c5a900
Localisation updates from https://translatewiki.net.
Change-Id: I91109c5f404c3ddd715e33b65ea86f4ab2110895
2024-06-13 09:28:55 +02:00
libraryupgrader a055b7e098 build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I6685574bc3a9cac904df145ff0a4ef18d93950ff
2024-06-12 09:05:23 +00:00
libraryupgrader be68039370 build: Updating eslint-config-wikimedia to 0.28.0
Change-Id: Ia65e58e4812cb5933776484dd3e8edb144d0b1aa
2024-06-08 09:48:13 +00:00
Translation updater bot 9c36a07e5d Localisation updates from https://translatewiki.net.
Change-Id: Ie379541dd5dbed9b89bae4801f6d0eb873cb2534
2024-05-28 09:31:04 +02:00
Translation updater bot cb8aa0faa3 Localisation updates from https://translatewiki.net.
Change-Id: I9c7e6d924a52ddf32f3ef75f349ba479e817374f
2024-05-27 09:29:39 +02:00
Fomafix 2e145b0ff6 Rename language codes sr-ec and sr-el to sr-cyrl and sr-latn
sr-ec and sr-el are not conform to BCP 47. https://tools.ietf.org/html/bcp47
BCP 47 explicit mentions sr-Latn and sr-Cyrl as examples.

This change requires 6839b8599458d978b0596de57c8cb8f31db5a2f6
in MediaWiki core included in MediaWiki 1.39.

The bidirectional fallback between the old and the new language codes
ensures that the magic words supports both language codes. This can be
checked at api.php?action=query&meta=siteinfo&siprop=magicwords&format=json
Just the order of the entries is different after this change.

The rename of the JSON files
* sr-ec.json to sr-cyrl.json and
* sr-el.json to sr-latn.json
has to be done in translatewiki.net.

Bug: T117845
Depends-On: I666fbdea89ccf21aab6ca1849adf22813dec052e
Change-Id: I2746b7986cda454affbc17f467fef233ecd4bf51
2024-05-19 19:30:56 +00:00
libraryupgrader 8e5876ade9 build: Updating grunt-banana-checker to 0.13.0
Change-Id: If2be1302bd06dd1c68ed93231b54d8a484693a74
2024-05-18 21:13:29 +00:00
libraryupgrader 2107e1317b build: Updating grunt-banana-checker to 0.12.0
Change-Id: I41b665467efd7174988b4f8afd0db633ae255364
2024-05-11 02:32:20 +00:00
Translation updater bot 1663c428ae Localisation updates from https://translatewiki.net.
Change-Id: Ib4873e66f49d11e06fd4820070f445af86d22203
2024-05-10 09:29:45 +02:00
Translation updater bot 8fa81888e7 Localisation updates from https://translatewiki.net.
Change-Id: I23e1c4c008cc77ed158113191d4ee984802951d4
2024-05-08 09:24:10 +02:00
libraryupgrader b5f720bb09 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I7837cc90cdb20545733a0b9a906d13fe5a3850ed
2024-05-06 00:18:53 +00:00
Translation updater bot cdc1e7c813 Localisation updates from https://translatewiki.net.
Change-Id: I1fdef7918f7057808dc9730cb6542825a88a6d48
2024-05-03 09:29:20 +02:00
Translation updater bot c0872718e1 Localisation updates from https://translatewiki.net.
Change-Id: I3bc12d3f9aa6a529d98aff70f1b533280b0ecae1
2024-05-01 09:22:32 +02:00
Translation updater bot c47761503a Localisation updates from https://translatewiki.net.
Change-Id: Iaa1ab2887a89c57923e335a332639dd3a20069b7
2024-04-22 09:29:18 +02:00
libraryupgrader e1b337cb92 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: Ib9d3f4b40a40057959d407d1920a920dd089b1c4
2024-04-18 01:42:36 +00:00
Translation updater bot 28b664dc37 Localisation updates from https://translatewiki.net.
Change-Id: Ie2795875f7fcc5185d3528490d89d5243d11f5dd
2024-04-08 09:26:38 +02:00
Translation updater bot 1c266cbd0e Localisation updates from https://translatewiki.net.
Change-Id: I774a04fb33a70f9cb507da5d1edf67670c56e68b
2024-04-01 09:23:01 +02:00
Umherirrender ad83bc2f76 Replace isset() with null check in ParserFunctions
Found usage of isset() on expression self::$mExprParser that appears to
be always set. isset() should only be used to suppress errors. Check
whether the expression is null instead.
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#isset

Change-Id: Idcc51fc215fb727e84aaba5ac2510c052ce6b4d6
2024-03-27 23:06:57 +00:00
jenkins-bot 3c84c1f115 Merge "build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0" 2024-03-12 09:08:38 +00:00