Commit graph

2167 commits

Author SHA1 Message Date
Translation updater bot 9478f40638 Localisation updates from https://translatewiki.net.
Change-Id: Ia6e2e0bd6809f834232091be138006b92ac5fb4f
2022-01-12 08:25:38 +01:00
C. Scott Ananian 0a3b28d3de Passing a string to ParserOutput::addModules()/addModuleStyles() is deprecated
Bug: T296123
Change-Id: I9b7fe5acee73c3a378153c0820b46816164ebf21
2022-01-11 17:02:39 -05:00
Thiemo Kreuz 5f749c6418 Allow aliases to be integers in addition to strings
Parameter names in a template can be numeric. While it makes a lot of
sense to force a specific format in the TemplateData JSON (i.e. only
strings), it's inconvenient and confusing if numbers are rejected for
being "invalid".

Effects of this patch:
* The incoming JSON is allowed to contain numbers in the aliases
  array.
* However, the API normalizes these and forces all aliases to be
  strings, as it was always documented.
* The editor component accepts anything in the aliases array, but
  forces all aliases to be strings. Again, as documented.
* Note that it was never possible to use numeric keys in the `params`
  list. This patch is only about aliases.

At the moment this is a somewhat "hidden" feature. We might or might
not update the documentation to officially allow numeric aliases.

Bug: T298795
Change-Id: I32ea296b4520e7f21b03a1f6390db4f43b613bdd
2022-01-10 13:33:27 +01:00
Thiemo Kreuz e79f19f09c Fix and update type hints in JSDoc comments
Change-Id: Ib38d3c4eff7630bd3aed04beee33adc5ae2101f3
2022-01-10 11:48:42 +01:00
Translation updater bot e296c87ad2 Localisation updates from https://translatewiki.net.
Change-Id: Ib26fedc0182efd5178631db1e12cfabde34b8854
2022-01-06 08:32:09 +01:00
Translation updater bot 79a986fc5b Localisation updates from https://translatewiki.net.
Change-Id: Ib88a59d8e0291e1ec7cf8c08ed5c13f04d96f844
2022-01-05 08:16:31 +01:00
Translation updater bot 15dca97d2f Localisation updates from https://translatewiki.net.
Change-Id: I2a74f09dbb716b77847162bca66a0fab3a5b854d
2022-01-04 08:28:20 +01:00
Translation updater bot 2c61d90f3e Localisation updates from https://translatewiki.net.
Change-Id: Ie5cdf341680805969836ec3f32c116c074fcb1ee
2021-12-31 09:42:24 +01:00
Translation updater bot 3f6cb26b10 Localisation updates from https://translatewiki.net.
Change-Id: Ie713f50c9b4708b5c493bafcea4e53649cb802f6
2021-12-30 09:38:10 +01:00
Translation updater bot 905f7f7c2a Localisation updates from https://translatewiki.net.
Change-Id: Ic6565e5b24be31d34db5010624f883c9f3dcd6d4
2021-12-27 09:31:06 +01:00
Translation updater bot 7abf7efbe2 Localisation updates from https://translatewiki.net.
Change-Id: I806485e1b7beb2b509530809b0f72fdb3d6b8527
2021-12-24 09:09:59 +01:00
Translation updater bot 2b96e1e9ae Localisation updates from https://translatewiki.net.
Change-Id: I3d95a23a0a69dcaafff7019b2194e160c0d5d02f
2021-12-23 08:38:32 +01:00
Translation updater bot e1e11b8839 Localisation updates from https://translatewiki.net.
Change-Id: Ib67f0a1631ed5aa8051838509c76566fb6a70be5
2021-12-20 08:21:44 +01:00
Adam Wight 709c89909f Remove comma-delimiting code
No longer needed as of I9450f70e705d9596c7e0d7545f9b5505fc4aae04

Change-Id: I342db496a1e3e0b6c4466dbdd62ee0d8d21258c0
2021-12-17 12:08:10 +01:00
Thiemo Kreuz f7771a22a6 Edit aliases via a proper widget instead of comma-separated
Bug: T285284
Change-Id: I9450f70e705d9596c7e0d7545f9b5505fc4aae04
2021-12-17 11:50:27 +01:00
Translation updater bot 070f26eed1 Localisation updates from https://translatewiki.net.
Change-Id: Ifd45ed8dbcb2513cb841b734bd2ea234f3827415
2021-12-16 08:30:15 +01:00
jenkins-bot ffa54d4ca5 Merge "Add missing validation for aliases and suggestedvalues" 2021-12-15 12:39:50 +00:00
jenkins-bot 44b4204962 Merge "Fix serialization adding empty autovalue when not needed" 2021-12-15 12:14:45 +00:00
Translation updater bot 4b353825a4 Localisation updates from https://translatewiki.net.
Change-Id: I55bccfbb34a45c206baa713543638465f6a7f91b
2021-12-13 08:22:15 +01:00
Translation updater bot 7958460cae Localisation updates from https://translatewiki.net.
Change-Id: I14be604403124effb32b60daf94a60428d6b55b6
2021-12-10 09:19:48 +01:00
Translation updater bot 3544f590e3 Localisation updates from https://translatewiki.net.
Change-Id: I058da9ce5ef49f08b2f08ea30cbb1361227488bb
2021-12-10 08:25:02 +01:00
Thiemo Kreuz e83e3f2661 Add missing validation for aliases and suggestedvalues
This is not new. This was always documented to not accept anything
but strings.

Let's apply the same fix to aliases while we are here.

Bug: T297386
Change-Id: I57e18779f28802816d5adb66cc4067df4e58b26e
2021-12-09 14:40:36 +01:00
Translation updater bot 3fd6b8aa61 Localisation updates from https://translatewiki.net.
Change-Id: Ic3b46928ff7c11913012ca325535b2bce4c82a01
2021-12-08 08:12:54 +01:00
Translation updater bot 1f0a5ca72a Localisation updates from https://translatewiki.net.
Change-Id: If606d92b8feb8fc337bb1c3a05161cc0a8ef4deb
2021-12-06 08:20:18 +01:00
jenkins-bot 6e4a3788b5 Merge "Namespace extension" 2021-11-29 14:28:28 +00:00
Thiemo Kreuz 2b2033c6ec Fix serialization adding empty autovalue when not needed
The autovalue field appears to be the only one with this edge-case.
This is because all other fields are either multi-lingual and
processed by the `….allowLanguages` code path above, or because
of other special-case handling somewhere else.

The idea is:
* Non-empty values are always added.
* When the property (in this case `"autovalue": "…"` existed
  before, it's kept, even if it's now empty.

Bug: T295074
Change-Id: Ie4d9825b89edb4bbbbc4283dc48e9113e537869a
2021-11-29 10:53:35 +01:00
Translation updater bot baaaa4209c Localisation updates from https://translatewiki.net.
Change-Id: I27dd377564719d86a5b356fe9df2f70c5f65a73a
2021-11-29 08:12:33 +01:00
Reedy 166812da07 Namespace extension
Change-Id: I779e97e512ec0c4f74fb6a4b706772fb1428e40f
2021-11-25 22:53:34 +00:00
Translation updater bot d3875a7272 Localisation updates from https://translatewiki.net.
Change-Id: I77ef96e57cd7d599bfb5d0cfd3818144ebcaf52b
2021-11-24 08:22:32 +01:00
Translation updater bot 49d7510c69 Localisation updates from https://translatewiki.net.
Change-Id: I9ae4f307f84ab5a2c797c93455fef8566157c28c
2021-11-22 09:03:49 +01:00
Translation updater bot 7d8ce6a0e5 Localisation updates from https://translatewiki.net.
Change-Id: I39b04ade04464f8ab7a731fc78db64b0b721733f
2021-11-19 08:28:29 +01:00
Translation updater bot 36de81376f Localisation updates from https://translatewiki.net.
Change-Id: Ia95086f15f479b79ffd7e647b7c01eba8a53803e
2021-11-09 07:29:49 +01:00
Translation updater bot 9bf37c8c12 Localisation updates from https://translatewiki.net.
Change-Id: Ia2aef26479dff5ce78db019dd95f0915c56ee7d8
2021-11-08 08:17:30 +01:00
Translation updater bot cd7ff4096d Localisation updates from https://translatewiki.net.
Change-Id: I7a8feecdee5da07e54bab12931ecbda9a96a0e88
2021-11-05 08:17:31 +01:00
Translation updater bot af9716423f Localisation updates from https://translatewiki.net.
Change-Id: I2997077265554e601bfcf22be380866c3ade8e08
2021-11-03 08:21:20 +01:00
Translation updater bot cddd71e856 Localisation updates from https://translatewiki.net.
Change-Id: I585a576a8153596ba75de95d7b6fe7d5596c7683
2021-11-02 08:07:34 +01:00
Translation updater bot 35fa6373cd Localisation updates from https://translatewiki.net.
Change-Id: Ie106fb26fbe5ada7788e49764318b5aefce0efb3
2021-11-01 09:34:37 +01:00
Translation updater bot 18b463d0c4 Localisation updates from https://translatewiki.net.
Change-Id: I904c64a5d74aca8c12d1744dbf11f5d461c62f8d
2021-10-28 08:29:04 +02:00
Translation updater bot 04620aac40 Localisation updates from https://translatewiki.net.
Change-Id: I8bd90f6bc8c67b9ac9990aa59ed5283b6a4ab4c1
2021-10-26 08:18:08 +02:00
libraryupgrader 1bfdc82a68 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I1f6a0105c42098f24a87590aba48806b622b17df
2021-10-24 13:52:58 +00:00
Translation updater bot d267fb9a6f Localisation updates from https://translatewiki.net.
Change-Id: I6db293d2220a26c2042d2d8b15ea99b88e94cd12
2021-10-20 08:37:54 +02:00
Translation updater bot 918fe7e6ec Localisation updates from https://translatewiki.net.
Change-Id: I9a95415400c8628252593ccda63745c968054ae0
2021-10-18 15:21:26 +02:00
Alexander Vorwerk df34af35af MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: Ie93e91911784d519dc7017f4f2a3ba6310339389
2021-10-12 01:06:08 +02:00
libraryupgrader 5195f6fe11 build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/1002401 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I22cdbb0cc67a73d49943b8ba8ca775fb3341f048
2021-10-09 07:27:24 +00:00
jenkins-bot 30204d74f5 Merge "Small clean-up of "format"-related HTML output" 2021-10-08 22:22:17 +00:00
C. Scott Ananian 6e1e698873 Rename deprecated usage of ParserOutput::{get,set}Property()
Bug: T287216
Depends-On: Ie963eea5aa0f0e984ced7c4dfa0fd65d57313cfa
Change-Id: I1633f6fa00193df6ea1d6633de07bc8d2b269cbf
2021-10-08 10:29:01 -04:00
jenkins-bot 810125500b Merge "Fix and update type hints" 2021-10-07 07:51:56 +00:00
Translation updater bot 3ce2d10446 Localisation updates from https://translatewiki.net.
Change-Id: I638d9c49384b126c6e0934435e63fd882c86234b
2021-10-07 09:03:30 +02:00
jenkins-bot da2077d5bc Merge "Fix parameter auto-detection picking up syntax elements" 2021-10-06 23:27:08 +00:00
jenkins-bot 1c67ed5f97 Merge "Remove static keyword from all test code" 2021-10-06 23:27:06 +00:00