Commit graph

1995 commits

Author SHA1 Message Date
Translation updater bot 09fab16959 Localisation updates from https://translatewiki.net.
Change-Id: I31b6fc361b62f34ae928b213adb865d0c0cf0a79
2022-04-28 09:29:03 +02:00
Translation updater bot 716f148bac Localisation updates from https://translatewiki.net.
Change-Id: I5dbc37bc6421afebd529a18122dc3bd0c2032bcf
2022-04-27 08:08:45 +02:00
Thiemo Kreuz ff7470e316 Add placeholder to avoid wikitext editor jumping down
Bug: T279869
Change-Id: Ic8f9bf7c95b42422dc4b477f9c752f5e89b20dc7
2022-04-25 08:42:59 +00:00
Translation updater bot 2177ea8cbc Localisation updates from https://translatewiki.net.
Change-Id: I8f0b6f4cdce5dcec5b8c6ddde030afbbd659af06
2022-04-25 08:19:06 +02:00
Translation updater bot 8ec80901b4 Localisation updates from https://translatewiki.net.
Change-Id: I44fe73021a89f088172db440516cbeceec279317
2022-04-18 10:06:57 +02:00
Translation updater bot bdf944c6ac Localisation updates from https://translatewiki.net.
Change-Id: I61ed33c8ef82944aa7fedd31a97073a6348acbcd
2022-04-15 09:56:59 +02:00
jenkins-bot f9dc0c19b9 Merge "No HTML needed to validate <templatedata> in wikitext" 2022-04-12 14:05:44 +00:00
Thiemo Kreuz 1c8b4ae729 No HTML needed to validate <templatedata> in wikitext
I tried to benchmark this and yes, it makes a difference, but probably
not a big one. This is an additional parse in addition to the one core
will later do when the page is actually saved. For this one here we
are just not interested in the HTML.

Bug: T305105
Change-Id: I71147af5161c934a822651e80e11f3bd26af56cd
2022-04-11 18:29:51 +02:00
Translation updater bot 5cc39395f7 Localisation updates from https://translatewiki.net.
Change-Id: I5f1367f85617aa0f6c55a551b615f29655fdbb7e
2022-04-08 08:28:22 +02:00
Translation updater bot 9de8c46234 Localisation updates from https://translatewiki.net.
Change-Id: I6b9829e8e0a216d7c8c7f68704f326debb409437
2022-04-05 08:26:13 +02:00
Translation updater bot 2aef87c790 Localisation updates from https://translatewiki.net.
Change-Id: Ib78f025ce4a72e30c1cf619fbd20a1c6d7c547b2
2022-04-04 09:35:12 +02:00
gerritbot 42061b7174 Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator

Bug: T275455
Change-Id: Ia08525d4162d8b460ca8f7fd97b75f564b6bbb7c
2022-04-04 01:29:48 +02:00
Translation updater bot 1798159f7d Localisation updates from https://translatewiki.net.
Change-Id: I61a011e4f8e46598320696beefc274c2c79efefe
2022-04-01 08:27:37 +02:00
Translation updater bot 0f5e243fe0 Localisation updates from https://translatewiki.net.
Change-Id: Idc9f3f7694b0c87ed2e97aa9998028545b56cf00
2022-03-31 08:36:27 +02:00
Translation updater bot e811eba8c3 Localisation updates from https://translatewiki.net.
Change-Id: Ibfe3f3d609304fb3474204c17a9c6943e28a7742
2022-03-30 08:18:42 +02:00
Translation updater bot a041a6ceba Localisation updates from https://translatewiki.net.
Change-Id: I6f4913c53d69a60a8cfce5a89dbc5fa98cac2a05
2022-03-29 08:06:15 +02:00
Translation updater bot 5899d7e66c Localisation updates from https://translatewiki.net.
Change-Id: I5b9c9bbfe0282a3d1b2b8b4fb300479bb8f53177
2022-03-28 08:22:06 +02:00
Translation updater bot e9caf7c020 Localisation updates from https://translatewiki.net.
Change-Id: I57585ed11fcf4c215cf7189f85660eebb27decc7
2022-03-22 08:30:16 +01:00
Translation updater bot 3f76ba8a2d Localisation updates from https://translatewiki.net.
Change-Id: I896f0f4d250c7a6870eacb98f7ec6748bd4f1eb1
2022-03-21 08:15:30 +01:00
Translation updater bot 97f4b9e300 Localisation updates from https://translatewiki.net.
Change-Id: I2752f822ad783de9f53fd89986a9824fd281a390
2022-03-18 08:45:25 +01:00
jenkins-bot 4f7ec83c6f Merge "build: Update devDependencies" 2022-03-14 13:46:52 +00:00
Translation updater bot cf2d1630c4 Localisation updates from https://translatewiki.net.
Change-Id: Ic7645db9fafa32bc02b3564494fc804e1230bdc8
2022-03-14 08:14:47 +01:00
Ed Sanders ef6294074e build: Update devDependencies
Change-Id: I80bd6849b1616b9c94e75eddfbf5f476b799e07b
2022-03-13 17:17:03 +00:00
Translation updater bot c74554cb27 Localisation updates from https://translatewiki.net.
Change-Id: I4662b3f285fbdf0eb1f94f3247996c62a611441a
2022-03-07 08:11:43 +01:00
Reedy 5341749f56 Use namespaced EventLogging class
Change-Id: I87ed269b205e83ce87e5350ef31d35847a6ad25b
2022-03-06 16:07:22 +00:00
Thiemo Kreuz d3f00177ba Don't extract template parameters from <pre>
<pre> behaves very similar to <nowiki> in so far that whatever it
contains doesn't get parsed as wikitext. It might contain {{{…}}}
tripple brackets, but these aren't going to be activated as template
parameters.

Bug: T91326
Change-Id: I05c24e369d97c48161c565e2ef30969ec28c6a23
2022-03-03 21:20:40 +00:00
jenkins-bot 192691cdb4 Merge "Remove unreachable validation step" 2022-03-03 16:33:08 +00:00
Translation updater bot 700ed9e9b9 Localisation updates from https://translatewiki.net.
Change-Id: Id7cfbadf64563bc52968dd4e58bba4ca1914b061
2022-02-28 14:29:29 +01:00
Translation updater bot bd168e9b35 Localisation updates from https://translatewiki.net.
Change-Id: I9f3af06f55689c52a3591c77dc0e7621d7997be7
2022-02-25 09:45:55 +01:00
Translation updater bot b8842a0494 Localisation updates from https://translatewiki.net.
Change-Id: Id5a789fcaf4f15a818d4bba8d079e2884d6aae67
2022-02-24 08:50:02 +01:00
Thiemo Kreuz 8fec04c8fd Remove unreachable validation step
I tried to write a test that can cover this code, but realized it is
unreachable. All parameters with all their properties are already
validated in the first loop.

Bug: T301337
Change-Id: If97adba45beb0ef1303907746715613fca23468e
2022-02-22 10:51:00 +01:00
Translation updater bot 3c1686c0f8 Localisation updates from https://translatewiki.net.
Change-Id: Id875fb1feb74fef53070435cc5509819207cc363
2022-02-22 08:12:19 +01:00
Translation updater bot 84c582c109 Localisation updates from https://translatewiki.net.
Change-Id: Iae837f034961f07507ea331a43a151fc175d72b4
2022-02-21 08:17:00 +01:00
jenkins-bot 46e072e512 Merge "ParserOutput::getPageProperty() now returns null when key is missing." 2022-02-19 01:47:48 +00:00
jenkins-bot 73f3f79f50 Merge "Update uses of ParserOutput::getPageProperty() to handle new return value" 2022-02-18 17:32:20 +00:00
Translation updater bot 2c575a7abf Localisation updates from https://translatewiki.net.
Change-Id: I772e5eaf53c58d37c5f0da4ddb13115c3d16bf0d
2022-02-18 08:41:09 +01:00
C. Scott Ananian 453c4152af ParserOutput::getPageProperty() now returns null when key is missing.
The return value of ParserOutput::getPageProperty() has transitioned
to returning `null` instead of `false` when the page property is missing.

Bug: T301915
Depends-On: Iaa25c390118d2db2b6578cdd558f2defd5351d15
Change-Id: I1126eab0e882b5bdfecea1ef6e3e27dca7b85115
2022-02-17 11:57:25 -05:00
C. Scott Ananian b87e24813e Update uses of ParserOutput::getPageProperty() to handle new return value
The return value of ParserOutput::getPageProperty() will transition to
returning `null` instead of `false` when the page property is missing.

Bug: T301915
Change-Id: I71628661b4539a4e35ae32846e719f92bcf782e0
2022-02-16 18:26:42 -05:00
jenkins-bot 67d6b77a84 Merge "Move getRawParams helper method to ApiTemplateData class" 2022-02-10 05:44:14 +00:00
Thiemo Kreuz da8969812c Move getRawParams helper method to ApiTemplateData class
This method is not used anywhere else:
https://codesearch.wmcloud.org/search/?q=getRawParams

I tried to make the code a bit more readable. Notable:
* Make use of the return value we get from the preg_… function.
* {{3,} means "the character '{' 3 or more times". {{{+ does the
  same. Note the { doesn't need to be escaped when it's not
  followed by a number.
* At the end, it doesn't make any difference when we scan for
  optional closing brackets. The moment we find at least 3 we are
  done.

The test is intentionally not moved. This is something for a later
patch.

Bug: T301337
Change-Id: I55e31ceecea2ae7c35bcfbc2d641b35f751820db
2022-02-09 12:37:33 +00:00
Thiemo Kreuz b1a4a27531 Split and streamline HTML formatter code
Bug: T301337
Change-Id: Ic2dac65e6e54411abc33326abf8d0fab148cb784
2022-02-09 12:37:29 +00:00
jenkins-bot 5407262418 Merge "Improve test coverage for HTML formatter code" 2022-02-08 16:09:17 +00:00
jenkins-bot a64ed0a376 Merge "Fix/narrow visibility of several methods" 2022-02-08 15:54:22 +00:00
Translation updater bot b7c4342c74 Localisation updates from https://translatewiki.net.
Change-Id: I9503bf3e3089f8f0efef27ca9fe4876d65c807f6
2022-02-08 08:29:02 +01:00
Translation updater bot abffa4a74d Localisation updates from https://translatewiki.net.
Change-Id: Ide88f7c89175f8e33144c9dfb19f5650d4b89977
2022-02-07 08:23:00 +01:00
jenkins-bot 8793641465 Merge "Move last remaining HTML formating code out of blob class" 2022-02-04 17:06:25 +00:00
Translation updater bot 01fead0f98 Localisation updates from https://translatewiki.net.
Change-Id: Ib521e7642b668679293c69019ed0f0b5e5eec415
2022-02-04 08:22:36 +01:00
Thiemo Kreuz a81a8b52bc Improve test coverage for HTML formatter code
… as well as some smaller improvements to the test coverage of other
code.

Change-Id: I5bec9c456fdc597c340dc0b515d23d837a7c5651
2022-02-03 12:45:27 +01:00
Thiemo Kreuz b674294789 Fix/narrow visibility of several methods
One method is only public to be able to test it. Others look like
they have been made "protected by default", which is not needed
anywhere.

Change-Id: Ib2231f0b2a879323aa53f8d40a175527c5b131d8
2022-02-03 10:48:04 +01:00
Thiemo Kreuz 001494f443 Move last remaining HTML formating code out of blob class
Effectively a no-op. This patch doesn't change what the code does.
Tests are in place to prove this.

As before, the tests are intentionally not moved but left in place.
This is for later patches to clean up.

Change-Id: If130e0d006a36d8c755288f8a4e4e9a4c42a6295
2022-02-03 09:33:03 +01:00