Commit graph

1964 commits

Author SHA1 Message Date
Translation updater bot 0bddbb8edc Localisation updates from https://translatewiki.net.
Change-Id: Ic337596c0edb1a2ae04349a843e81049c4fac269
2024-05-29 08:44:51 +02:00
Translation updater bot a7a9012cd1 Localisation updates from https://translatewiki.net.
Change-Id: Id6e59c42863e4c5d9014d8eb212451c0713330b7
2024-05-22 07:53:38 +02:00
Translation updater bot 84c0d0d11a Localisation updates from https://translatewiki.net.
Change-Id: I3a149805dbda4aad8772e7d9d7fc42131b4b33ee
2024-05-08 08:24:17 +02:00
Translation updater bot d4cb974c15 Localisation updates from https://translatewiki.net.
Change-Id: I8a48922524590b27f815b537674f46d249662968
2024-05-01 08:08:19 +02:00
Translation updater bot 5d15a44543 Localisation updates from https://translatewiki.net.
Change-Id: Ifad86eac9aac1fbd8e7ad1bf8573f34d2d035d72
2024-04-24 07:52:56 +02:00
Translation updater bot a2f4dff502 Localisation updates from https://translatewiki.net.
Change-Id: Ifed333fd4da5c214abdbd40cf8cf825d814e9783
2024-04-10 07:52:03 +02:00
Translation updater bot 825e1203b0 Localisation updates from https://translatewiki.net.
Change-Id: Ic942b2c074228dff48218fd3beccd545852a8181
2024-03-13 07:03:59 +01:00
Translation updater bot d9df5c18b9 Localisation updates from https://translatewiki.net.
Change-Id: I823f106bc43871f7820474c0367e46cde4bdab29
2024-03-06 07:18:04 +01:00
Translation updater bot db0c314ea6 Localisation updates from https://translatewiki.net.
Change-Id: I24eb0370fb68f5d85bbfbf598cd76319202fff9b
2024-02-28 07:18:07 +01:00
Translation updater bot 4edf346e06 Localisation updates from https://translatewiki.net.
Change-Id: If171f9322b38f653b9969fb33a64045e218a05a9
2024-02-21 07:17:52 +01:00
Translation updater bot 008ed88850 Localisation updates from https://translatewiki.net.
Change-Id: Id14fe977bbd199f40b698fe5a7d2c1941e5446e2
2024-02-14 07:21:40 +01:00
libraryupgrader 709ade604f build: Updating npm dependencies
* eslint-plugin-compat: 4.1.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* postcss: 8.4.19 → 8.4.35
  * https://github.com/advisories/GHSA-7fh5-64p2-3v2j
* semver: 5.7.1, 6.3.0, 7.3.8 → 5.7.2, 6.3.1, 7.6.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I0ff4709b4e8995eb4f24d03d9665d23f859a1645
2024-02-09 12:46:32 +00:00
Translation updater bot 6e9fbbe237 Localisation updates from https://translatewiki.net.
Change-Id: Id8fc1229dfbee108bc860dbb7892a8480968e294
2024-02-07 07:32:58 +01:00
Translation updater bot 9304571335 Localisation updates from https://translatewiki.net.
Change-Id: Icd64b70ece970c5bb8704c1611f9abec41012988
2024-01-24 07:34:41 +01:00
Translation updater bot c152e6a97a Localisation updates from https://translatewiki.net.
Change-Id: I2fa511d350d8284884813622f7da1f391292a88a
2024-01-10 07:42:59 +01:00
Translation updater bot f728c15caf Localisation updates from https://translatewiki.net.
Change-Id: I11b1ae0d84baf4ef1122b0b6b5e3a7d19aaecd8c
2023-12-27 07:13:49 +01:00
Reedy 4b702cbc54 LuaBit: Minor cleanup
Bug: T353678
Change-Id: I19527eb162c20b5a6017dc3c4dd2b98bf5cad5d9
(cherry picked from commit 836baa7142)
2023-12-19 21:44:59 +00:00
Reedy e891a9f025 LuaBit: Save files with unix EOL
Change-Id: Ia757198e32e2beb060ccee9577012bf3c91d49e5
(cherry picked from commit 54e9dd05be)
2023-12-19 21:42:16 +00:00
Translation updater bot 97cfaab70d Localisation updates from https://translatewiki.net.
Change-Id: I0d34a12b1c69b8bc211930a3709f3bf8013945c7
2023-11-29 08:00:58 +01:00
Translation updater bot d4372d0aad Localisation updates from https://translatewiki.net.
Change-Id: I14930075b6996138aa50d92f303f80beb227d41e
2023-11-01 07:58:04 +01:00
Translation updater bot 58d30b0f2b Localisation updates from https://translatewiki.net.
Change-Id: I37dfa8e6940a26100ac21866448dfe11d56644ca
2023-10-25 07:30:22 +02:00
Translation updater bot 8b38961ba2 Localisation updates from https://translatewiki.net.
Change-Id: Ie5e5e732ee3e737754ecfc471596b582b93f6a35
2023-10-18 07:23:29 +02:00
Umherirrender 29a9a8aec6 build: Change phan suppression to @phan-var for proc_get_status return
phan under php8.1 also detects PhanImpossibleTypeComparisonInLoop here,
but that cannot suppressed under php7.4,
so use @phan-var to set to the correct type, but keep the comment.
The suppression was added with 8328acb9 for a update of phan

According to the doc proc_get_status can only return array
(at least under php8.1)

Change-Id: Ieda5abc30126eed2e3a9f5fc283d36e64180f496
2023-10-06 19:37:10 +00:00
Umherirrender d734759316 tests: Declare class properties in LuaEngineTestHelper
Dynamic properties are deprecated under php8.2

Change-Id: I062f034295bf951d5761571e20d3e6d45df85ac3
2023-10-06 20:19:22 +02:00
Umherirrender e126de6a78 Rethrow TimeoutException when using mw.language.formatDate function
timeout while converting timestamps should be a timeout for the whole
parse of that wikitext and not hidden by a invalid time.
Just let the exception bubble up to the caller
See ca71e69f for more information

Change-Id: I1f44e45dcc9b052717814990a3f5ce3a1bdf9d26
2023-10-02 21:03:02 +02:00
Translation updater bot a63d074572 Localisation updates from https://translatewiki.net.
Change-Id: I101ad1c679e8885f125dc67c3b999d947e3423e5
2023-09-25 08:46:56 +02:00
Umherirrender 80198cd635 Use ::class for class name resolution
Change-Id: I92a73fd6eccd3cf963ce1ff50ccf4f7aac6a0e1e
2023-09-21 22:46:00 +02:00
Translation updater bot c81f3aec5f Localisation updates from https://translatewiki.net.
Change-Id: I50d2512cf628fd7c4613b838f358f0d8eee7e48a
2023-09-18 08:44:49 +02:00
Jdlrobson 77286ebc87 Revert "Replace use of ParserOutput::addJsConfigVars(), deprecated since 1.38"
This reverts commit 9f8d16f9c9.

Reason for revert: Causes internal error on certain pages.

Bug: T346094
Change-Id: Ia9ccffbbbe2fe2413b54fb5e16f5cfc53527990e
2023-09-11 20:18:13 +00:00
C. Scott Ananian 9f8d16f9c9 Replace use of ParserOutput::addJsConfigVars(), deprecated since 1.38
Most uses can be replaced with ::setJsConfigVar(); the major semantic
change is that ::setJsConfigVar() is not expected to overwrite
previous values.  That *may* be an issue here, but if so it's not
a change from existing behavior, as the way ::addJsConfigVars() was
being called it would override previous values as well.

Bug: T300307
Bug: T305161
Change-Id: Ibd3fbcbc774491179b0d4fe29ba3b6a128220703
2023-09-11 16:55:54 +00:00
Lucas Werkmeister b39d3589ba Remove Database group again where possible
Override the target language in the parser options, so that it isn’t
looked up from the database; this lets UriLibraryTest avoid database
access. And since the Database group is no longer strictly required,
remove the statement to that effect from the phpdoc again.

Bug: T345372
Change-Id: I79f35257b123eb939d9ab67b16aa56d34586bb67
2023-09-06 11:33:42 +02:00
Daimona Eaytoy 7e54c088ac Avoid DB access in databaseless tests
- Force a content model on the title used by LuaEngineTestBase, so that
  calls to getPageLanguage() won't end up hitting the DB
- Don't actually use SiteStats from SiteLibrary in unit tests. There
  seem to be no test actually using this data.

Bug: T345372
Change-Id: I35884f04b582678982fb5f64d9199bab41cd8bce
2023-08-31 19:12:55 +00:00
Lucas Werkmeister ea0707c437 Add UriLibraryTest to Database group and add advice for others
All LuaEngineTestBase subclasses must be in the Database group, as far
as I can tell it can’t be avoided. (Several already are anyway.) We
can’t centrally do this in the base class anymore (needsDB() can no
longer be overridden), so just add it to the phpdoc here.

Bug: T345372
Change-Id: I47016ec84ed227f755f94a383bee8053975b4c81
2023-08-31 18:08:37 +02:00
Translation updater bot c588e717ab Localisation updates from https://translatewiki.net.
Change-Id: I09b9b5ab0ac82b60850558241cfa2ec3944d6981
2023-08-28 09:30:59 +02:00
Umherirrender a8280e5e5f Use namespaced Title
Bug: T321681
Change-Id: I65940dc6d276f86734ff724d6605facb68dd8e44
2023-08-19 20:18:41 +02:00
gerritbot b7a5e6fadd Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I27924141187aef8fe2f6500ec0c4b6360d268c28
2023-08-19 12:22:05 +00:00
James D. Forrester 2248bb8ca5 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ia8e611f53722341fc80a42267452bd14562914d5
2023-08-19 14:05:01 +08:00
Umherirrender a00ce79826 Use HookHandlers for CodeEditor hook
This requires 1.41 for the interface (added in 4d6a470a)

Bug: T271026
Change-Id: I393ba99b7265dac81c7fdaf3d21630386c7c53a9
2023-08-15 13:50:13 +02:00
Umherirrender 648985c981 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: T271026
Change-Id: I1583f5075937c4ce71a0d8748700f7012280851c
2023-08-15 13:49:53 +02:00
Translation updater bot f61a523ceb Localisation updates from https://translatewiki.net.
Change-Id: I6415d17e26649092a3d2a7cfaf41eed4c5da93d5
2023-07-31 09:00:53 +02:00
Translation updater bot 4aa17cb80c Localisation updates from https://translatewiki.net.
Change-Id: If270803d71c66c5a986946a2733d932c010ea898
2023-07-24 09:39:36 +02:00
Winston Sung 2af0e991e4 Follow-up of "Localisation updates from https://translatewiki.net."
Change-Id: I0d19c5bb331a8579b0ff0e752251520a724bf497
2023-07-17 09:21:37 +00:00
Translation updater bot 34c83b1158 Localisation updates from https://translatewiki.net.
Change-Id: I0f4ac4e7a9bc2b2d45aa1d67dbdee46d8a78ac84
2023-07-17 10:18:41 +02:00
Anne Haunime b3f55c05e9 Optimize mw.text.trim() with default charset
Using code by David Manura, published at lua-users.org/wiki/StringTrim

Note '\t\r\n\f ' is replaced with '%s', thus '\v' (vertical tab) is added to the characters trimmed by default.

Bug: T338561
Change-Id: I98e2677f1181b88f4cd97cffca3a53ce426ec5cd
2023-07-14 15:59:20 +00:00
Translation updater bot 511fce82db Localisation updates from https://translatewiki.net.
Change-Id: I83de5e66552587771014b7ecae534036be17f7b3
2023-07-03 10:16:16 +02:00
Translation updater bot 7c47ae1344 Localisation updates from https://translatewiki.net.
Change-Id: Idf55d688a1d40c4ca0fcac84cb970c3562022e6b
2023-06-26 12:40:50 +02:00
Umherirrender 622364c437 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: Ic533cea25b7ab6b5d390a73c306abd584f5c9c33
2023-06-24 00:20:25 +02:00
Umherirrender 2ee5768ef5 Create HookRunner class and the hook handler interfaces
Bug: T271026
Change-Id: If525e0f950b3a098162b19373edb3b443f559bf2
2023-06-19 21:39:33 +00:00
Translation updater bot 8811ea784e Localisation updates from https://translatewiki.net.
Change-Id: I24a4cd5b6400ccc420a0dfeb04ec83051d38c4aa
2023-06-19 11:08:01 +02:00
Daimona Eaytoy 846495fe45 Replace deprecated MWException
Bug: T328220
Change-Id: I38be06abdabff29276f07c378f3ef434973fb8d6
2023-06-09 14:43:44 +02:00