Commit graph

1868 commits

Author SHA1 Message Date
Translation updater bot 4e6b7de4d5 Localisation updates from https://translatewiki.net.
Change-Id: Iffcd2ce060fec817c4630b3fb756273518b91d7e
2024-01-15 07:51:35 +01:00
Translation updater bot a88546acca Localisation updates from https://translatewiki.net.
Change-Id: Ie677e23a1e798798b9356a99e06c7be9fe7c7542
2023-12-26 08:02:40 +01:00
Reedy 5bb3740baa LuaBit: Minor cleanup
Bug: T353678
Change-Id: I19527eb162c20b5a6017dc3c4dd2b98bf5cad5d9
(cherry picked from commit 836baa7142)
2023-12-19 22:03:36 +00:00
Reedy b15373364a LuaBit: Save files with unix EOL
Change-Id: Ia757198e32e2beb060ccee9577012bf3c91d49e5
(cherry picked from commit 54e9dd05be)
2023-12-19 21:54:50 +00:00
Brian Wolff 01f66c0a3e Update tests for compat with kaa i18n changes
See be7291848428 & be7291848428

Bug: T353753
Change-Id: Icbf016311af029bfd02dd701ede881416b85ee31
(cherry picked from commit 72366e5b68)
2023-12-19 21:53:46 +00:00
Translation updater bot 9eeb97dab4 Localisation updates from https://translatewiki.net.
Change-Id: Ia181633ec7e675a2d982d9af966ac8281a38cfdf
2023-11-28 08:13:06 +01:00
Translation updater bot 2e33f4d2db Localisation updates from https://translatewiki.net.
Change-Id: If1b26586b2afc7b273e63b2e0e1fa625c1593295
2023-10-31 07:24:05 +01:00
Translation updater bot b00e5128d1 Localisation updates from https://translatewiki.net.
Change-Id: I450e46ed941aa0f8a88b487b53805751a214e264
2023-10-17 08:37:53 +02:00
Translation updater bot 47ba21a4b9 Localisation updates from https://translatewiki.net.
Change-Id: Ie03a9b9eb64b82e489e7219c84b774d1ccb6cf91
2023-09-26 08:02:46 +02:00
Translation updater bot 549485c540 Localisation updates from https://translatewiki.net.
Change-Id: Ic89bf947b731988c01f8b0cd4c6e8647d676c685
2023-09-19 08:13:24 +02:00
Translation updater bot aa17b71239 Localisation updates from https://translatewiki.net.
Change-Id: I4151ed3f2307447df4ecbf21667e3a0e912a6a09
2023-08-29 07:34:03 +02:00
Translation updater bot e3e68a086d Localisation updates from https://translatewiki.net.
Change-Id: I91054fc0dfc1c18bfcfe4823412dbbfd3a4dd854
2023-08-01 07:49:29 +02:00
Translation updater bot c22a28b5c7 Localisation updates from https://translatewiki.net.
Change-Id: Id99c0093ec0835705987bc003fdb4846ebc87a52
2023-07-25 08:57:53 +02:00
Translation updater bot e11ef689cb Localisation updates from https://translatewiki.net.
Change-Id: I89c99f310ab7503bdb45846bc9734e2361f3511b
2023-07-18 08:55:20 +02:00
Translation updater bot 4ab028a325 Localisation updates from https://translatewiki.net.
Change-Id: Ie10722380df01faeac9c5fab0ff828d5e43656cb
2023-06-20 07:58:57 +02:00
Translation updater bot 69bf72d020 Localisation updates from https://translatewiki.net.
Change-Id: I49877df5ca2bbff184c1f435823571fdb8ad7118
2023-06-06 07:16:46 +02:00
Translation updater bot 1e319ede98 Localisation updates from https://translatewiki.net.
Change-Id: Ibef3cb44a2ead240fb571e022d30ea6b06d9babc
2023-05-30 07:03:02 +02:00
Translation updater bot f70557020d Localisation updates from https://translatewiki.net.
Change-Id: I785e82c1ecd2f031e7fd50d9f88dae9a248858cc
2023-05-23 07:07:58 +02:00
Translation updater bot ebb91f2ae7 Localisation updates from https://translatewiki.net.
Change-Id: Ib260f0e31bb3beb71ba7266ac37c786d223fbfe1
2023-05-16 07:12:46 +02:00
Translation updater bot 912b5488bf Localisation updates from https://translatewiki.net.
Change-Id: Id0383e6aa169808c08bf28378f3432dd58a37ad6
2023-05-09 08:16:55 +02:00
Translation updater bot 89a0c73943 Localisation updates from https://translatewiki.net.
Change-Id: I8c72124a65adddffd409ce75d9f3bcb0f8c6e056
2023-04-25 07:33:37 +02:00
Translation updater bot f61d349d6c Localisation updates from https://translatewiki.net.
Change-Id: I3ce54a657608dd3270ee3cf4fd116b27e776909c
2023-03-28 07:51:55 +02:00
Translation updater bot 4e8f19ac27 Localisation updates from https://translatewiki.net.
Change-Id: I6866df70cc6c34dfeeffb7704c6deeede83faf8d
2023-03-21 08:23:56 +01:00
Translation updater bot 41e7742128 Localisation updates from https://translatewiki.net.
Change-Id: I341e82d6f743b13ee88d3f53adecede36f1f8fdc
2023-03-14 08:14:43 +01:00
Translation updater bot 2f47ad447f Localisation updates from https://translatewiki.net.
Change-Id: I02d55f9f0941ae87acae3c7ea628614aa7d92811
2023-03-07 07:51:11 +01:00
Translation updater bot 5ccdc917f8 Localisation updates from https://translatewiki.net.
Change-Id: I0469b02c7c85817f9a3e64e788afc65991e4fda2
2023-02-28 07:07:12 +01:00
Reedy 34e2ecddf6 ScribuntoException: Use value property not dynamic property
Bug: T330524
Change-Id: I69a102497fffb939c849d2836302068ac9eff3d0
(cherry picked from commit 033c69cfab)
2023-02-25 13:25:01 +00:00
Umherirrender 688184b1ff tests: Fix i18n part of test data to match new translation
https://translatewiki.net/w/i.php?title=MediaWiki:Duration-minutes/kaa&oldid=11412949

Follow-Up: Ibc5e8cee9e076c8952eb24839d5e97d4eca4ccf4
Change-Id: If352609c5ad7d9a52a94c737cac3f0f1a47de2e0
(cherry picked from commit f15b30cdb7)
2023-02-25 13:24:29 +00:00
Translation updater bot 1f5bfea5bf Localisation updates from https://translatewiki.net.
Change-Id: I9334b4153103656db4c4a84c330f7350cbfdd6d5
2023-02-14 07:17:06 +01:00
Translation updater bot df99db152b Localisation updates from https://translatewiki.net.
Change-Id: I6cf230ff75200cd7230f4b22022ed8ed9dba536b
2023-01-24 07:16:15 +01:00
Translation updater bot 3d440716d2 Localisation updates from https://translatewiki.net.
Change-Id: I4447948fee1bb1b617357e25fed06466a3fee2ae
2023-01-17 07:09:18 +01:00
libraryupgrader 3ec8c65d6c build: Updating json5 to 2.2.2
* https://github.com/advisories/GHSA-9c47-m6qq-7p4h

Change-Id: I9768e3683d6d8b90bb7b7984c3f88e3ca9b78ac3
2022-12-29 12:36:25 +00:00
Translation updater bot c8174cd170 Localisation updates from https://translatewiki.net.
Change-Id: I2aeabe9b0ac4ee6b54cf1c480e31bff5e3876a24
2022-12-27 07:12:48 +01:00
Translation updater bot df0babb6ee Localisation updates from https://translatewiki.net.
Change-Id: Id198afd102b32725fbfac8ba863a5f5e0b0271f2
2022-12-20 07:57:25 +01:00
Translation updater bot b2dcbd436e Localisation updates from https://translatewiki.net.
Change-Id: I2100d4a5130d7cba025c880c0c54f098b729e9a6
2022-12-13 07:29:34 +01:00
Translation updater bot 13ee4009e4 Localisation updates from https://translatewiki.net.
Change-Id: I41f4b535148becafee1e0ed1a2ac779e8316265c
2022-12-08 07:42:53 +01:00
libraryupgrader 7864126199 build: Updating npm dependencies
* grunt: 1.4.0 → 1.5.3
* async: 3.2.0 → 3.2.4
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* minimatch: 3.0.4 → 3.0.8
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3
* minimist: 1.2.5 → 1.2.7
  * https://github.com/advisories/GHSA-xvch-5gv4-984h
* nanoid: 3.1.25 → 3.3.4
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2

Additional changes:
* Set `name` in package.json.

Change-Id: Id8af4cade3ac2fee4ce09927aecac738d138999b
2022-12-04 20:21:22 +00:00
Translation updater bot 69b2b76b31 Localisation updates from https://translatewiki.net.
Change-Id: I153acaa806f7a5750b0b1122d3a26c981ec7a059
2022-12-01 07:20:56 +01:00
Translation updater bot 7a235299b7 Localisation updates from https://translatewiki.net.
Change-Id: I5ab480952e6c2f7ee4767f271baf119cea52aa1d
2022-11-24 07:08:56 +01:00
Translation updater bot 5e281fcbc0 Localisation updates from https://translatewiki.net.
Change-Id: I5cee835bc0c62c5da536b12d408b6e6ceb42674b
2022-11-17 07:18:43 +01:00
Translation updater bot af69ebb9fd Localisation updates from https://translatewiki.net.
Change-Id: Id5a1bb754801467f46f719e36cb7898593797d81
2022-11-10 07:21:57 +01:00
Kunal Mehta ffd5b0bd4a Simplify creating JSON pages in the Module namespace
Pages ending with a ".json" suffix in the Module namespace will use the
built-in JSON content model by default. Previously editors had to use
Special:ChangeContentModel to get a JSON page, which requires the
"editcontentmodel" userright that is not granted to a wide set of users
by default.

Bug: T144475
Change-Id: I1546fcad823a55a8c5a93177df8715844de1e87c
(cherry picked from commit 4ccebcdf4b)
2022-11-08 10:05:34 +00:00
Kunal Mehta a839ba855d Add mw.loadJsonData()
Backporting this so the LTS release has forwards compatibility with
Wikipedia templates.

mw.loadData() allows for optimizing the loading Lua tables by requiring
only one parse and lookup. However it's often easier for people to
write/maintain bulk data in JSON rather than Lua tables.

mw.loadJsonData() has roughly the same characteristics as mw.loadData()
and it can be used on JSON content model pages in any namespace.

As noted on the linked bug report, it's possible to already implement
this by writing a wrapper Lua module that loads and parses the JSON
content. But that requires a dummy module for each JSON page, which is
just annoying and inconvenient.

Test cases are copied from the mw.loadData() ones, with a few omissions
for syntax not supported in JSON (e.g. NaN, infinity, etc.).

Bug: T217500
Change-Id: I1b35ad27a37b94064707bb8c9b7108c7078ed4d1
(cherry picked from commit 1000d322e5)
2022-11-07 07:34:42 +00:00
Kunal Mehta d51ae237ad Add strict.lua to replace "Module:No globals"
This is being backported because many users copy lua modules from
Wikipedia, and thus benefit from forwards-compatibility.

For the most part, it is a good idea to avoid global variables and use
`local` variables instead. Quoting from the ScopeTutorial[1], "The
general rule is to always use local variables, unless it's necessary for
every part of your program to be able to access the variable (which is
very rare)."

Wikimedia module authors have written "Module:No globals", which errors
on the use of any global variable. On the English Wikipedia, this is
used on 32% of pages (18 million). Wikidata[2] indicates that it's been
copied to 334 other wikis.

Lua itself distributes an extra named "strict.lua"[3], which is what
this is based off of. Similar to bit32.lua, this is a pure-Lua library
that can be imported/enabled with `require( "strict" )` at the top of a
module.

The two changes I made from Lua's strict is to exempt the `arg` key,
which is used internally by Scribunto, and remove `what()`, since we
don't enable access to `debug.getinfo()` for security reasons.

[1] https://lua-users.org/wiki/ScopeTutorial
[2] https://www.wikidata.org/wiki/Q16748603
[3] http://www.lua.org/extras/5.1/strict.lua

(Cherry-picked from 829c53ef05)

Bug: T209310
Change-Id: I46ee6f630ac6b26c68c31becd1f3b9d961bcab29
2022-11-06 21:58:19 -08:00
Translation updater bot ed7acd78a2 Localisation updates from https://translatewiki.net.
Change-Id: I150484ff58b20abae489eb131f296011fbe51779
2022-11-03 07:21:35 +01:00
Translation updater bot 3e671010f4 Localisation updates from https://translatewiki.net.
Change-Id: I498ebd1e9a0ff2594227e57df2bd21dc2eef251e
2022-10-27 08:04:23 +02:00
Translation updater bot c7409c9bef Localisation updates from https://translatewiki.net.
Change-Id: I95a994e53768ebbc9eeaf0e1fc90381726218b56
2022-10-13 07:24:01 +02:00
Kunal Mehta 1716fd6704 Restore padding on #mw-scribunto-input to make cursor visible
In Chromium-based browsers the lack of padding means the cursor
isn't visible in the textarea when focused. In this case, it's
probably more important for the cursor to be visible than the
lack of padding to make it look more like a terminal.

Bug: T272678
Change-Id: I09ed2933bdac292ee9b9b98a2c8c48d96914d096
(cherry picked from commit 835631de27)
2022-10-08 22:04:09 +00:00
Translation updater bot 5b04d28319 Localisation updates from https://translatewiki.net.
Change-Id: I6e2e884a4224356e6c85175791cce4d721fed034
2022-10-06 07:13:21 +02:00
Brian Wolff 1fbb8d73c1 Make sure that lua stack trace is valid UTF-8.
This fixes a warning on php8.1 related to preg_match_all returning
null when given invalid UTF-8.

I made a separate patch to change the null into an exception Ic0c9083b

In a sense, this is a follow-up to ec103b6966.

Bug: T319218
Change-Id: Ia17fc2fa428ec35bdbd242f1127fcdff501fb741
(cherry picked from commit 047200c11e)
2022-10-06 00:45:15 -04:00