Commit graph

3062 commits

Author SHA1 Message Date
jenkins-bot 1414dced9d Merge "Stop using autoMsg and use mw.messages directly instead" 2023-07-06 16:16:02 +00:00
Jon Harald Søby 499c71114a Stop using autoMsg and use mw.messages directly instead
WikiEditor has a clever functionality where you can enter a message
key directly by using [key]Msg syntax in the object definition. While
that may have been a clever approach, it led to tons of messages
in this extension having to be marked as RawHtmlMessages because
they could potentially be parsed as HTML. Thus I am replacing all
of these instances with using mw.message explicitly instead, with
the necessary method attached.

The autoMsg (and its cloned autoSafeMsg) functions have had FIXME
comments attached since 2018 saying that these methods are
unnecessarily complex and should be replaced with using mw.messages
directly.

This solves a lot of problems for translators in Translatewiki, and
hopefully makes the code more straightforward and easier to understand
for those reading it down the line.

I would like to remove the autoMsg and autoSafeMsg functions
altogether, but their functionality is still in use in a few
extensions (and potentially on-wiki code), so we would have to
clean up that first.

Bug: T154891
Bug: T294760
Change-Id: I2835341867df85552579ea6927cd39a6f889fa6b
2023-07-06 10:39:24 +02:00
Translation updater bot 075a7cf989 Localisation updates from https://translatewiki.net.
Change-Id: I451be13ad4d6b34789143051fd8b29735fa6fe69
2023-07-06 10:17:13 +02:00
Translation updater bot 8ec88126dd Localisation updates from https://translatewiki.net.
Change-Id: I621e8044f7c2a6871ac919211d89513c8fe1e724
2023-07-03 10:17:14 +02:00
jenkins-bot c4a284259e Merge "Move reference-specific settings to the Cite extension" 2023-06-28 23:43:49 +00:00
Translation updater bot 11306309b5 Localisation updates from https://translatewiki.net.
Change-Id: I6e4df4859e24081e1dd665e507ad53ecb41b7fb0
2023-06-26 12:41:34 +02:00
Jon Harald Søby 5c18abff00 Move reference-specific settings to the Cite extension
These config settings were specific to the Cite extension,
and are misleading on wikis that don't have that extension
installed. Move the functionality to the Cite extension
instead.

Bug: T339973
Depends-On: Ib3fdc897dd3330f69c5832003d4c3cb1e6dba2f3
Change-Id: Ib619706ddfca724990e1db2d51f12a2eb05f6a72
2023-06-22 14:07:29 +02:00
Translation updater bot 17ac59bfda Localisation updates from https://translatewiki.net.
Change-Id: Iec733b7bd761300bf844eeca6993ffca94b82bcf
2023-06-19 11:08:25 +02:00
Translation updater bot 4c046b5941 Localisation updates from https://translatewiki.net.
Change-Id: Ica4c02046d3a8a3f61dd68135e0ac0f4a5a05459
2023-06-14 13:08:22 +02:00
Translation updater bot cef2dccb3f Localisation updates from https://translatewiki.net.
Change-Id: I9114e3a20d70475ada2a48840ed6ac838b21e9e4
2023-06-12 13:08:37 +02:00
DLynch 3e568552b6 Revert "Remove hacks that avoid duplicate event logging with MobileFrontend"
This reverts commit 929e8463fb.

Reason for revert: we're still seeing double-logging of some events, so this is apparently still needed until we can track down what's causing that.

Change-Id: Ifc32dfc7aa2ca67169759ecd8c278f1aea2dbef8
2023-06-09 15:20:01 -05:00
Translation updater bot fa73b4d7f0 Localisation updates from https://translatewiki.net.
Change-Id: I45012e68eb7a6a2aca357d558857305f9b265df6
2023-06-09 09:15:19 +02:00
Translation updater bot 6acfc20f9c Localisation updates from https://translatewiki.net.
Change-Id: Id8a30db96e8af49d1abeca8463d446519280d87e
2023-06-08 10:41:20 +02:00
Translation updater bot 56f1ba9dce Localisation updates from https://translatewiki.net.
Change-Id: I174f4940f1d3ece36b5936f5667f49f4b3eb2f21
2023-06-05 08:41:55 +02:00
libraryupgrader 4b2be7c719 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I9e76569da0581f1c1cb34d2b36b59334a56d6ae8
2023-06-03 01:55:15 +00:00
Translation updater bot 7ec4bd9d22 Localisation updates from https://translatewiki.net.
Change-Id: If87e8d462034b39281d8b85e8ecd97d6b50b9fde
2023-06-02 09:25:06 +02:00
Translation updater bot 41af41a75e Localisation updates from https://translatewiki.net.
Change-Id: Ieca0c443dbd27de04bfd45ccb3b5caf4b1ad41f5
2023-06-01 08:44:24 +02:00
Translation updater bot 4b87819ec3 Localisation updates from https://translatewiki.net.
Change-Id: Ifc74c3970ddf847f860e6ec41f91abc3a810348b
2023-05-31 08:21:15 +02:00
Translation updater bot cb0f4298fa Localisation updates from https://translatewiki.net.
Change-Id: I226a77e67253d2c3448986017baa376edd43548f
2023-05-30 08:57:29 +02:00
Translation updater bot 2179b22792 Localisation updates from https://translatewiki.net.
Change-Id: I4f4c1e92f06c9df2df3ffbb306dc5688b7d74beb
2023-05-29 10:00:31 +02:00
Translation updater bot 59413a5d23 Localisation updates from https://translatewiki.net.
Change-Id: I65ddad9ce96e20cd650545f1a137310dfa317714
2023-05-25 09:11:19 +02:00
Translation updater bot 837e2d51f8 Localisation updates from https://translatewiki.net.
Change-Id: Ib60cc6c2fae841d90b0ab3394bed493a7b1df753
2023-05-23 08:23:15 +02:00
Translation updater bot fcdbb5a1c2 Localisation updates from https://translatewiki.net.
Change-Id: Id66021e06256045be13da3d7129dc1e1ae3c832f
2023-05-22 08:47:02 +02:00
Translation updater bot 38b18eb2a5 Localisation updates from https://translatewiki.net.
Change-Id: I301a0a8cb606a08a4eaf1b8994b78ba48f993438
2023-05-19 10:43:50 +02:00
Translation updater bot 69b9605575 Localisation updates from https://translatewiki.net.
Change-Id: I888ce9d717f7a44fd29703fe13d0761d6f43d6bf
2023-05-18 10:13:26 +02:00
jenkins-bot ae604ffeca Merge "jquery.cookie is deprecated" 2023-05-17 19:20:52 +00:00
Sam Smith 457366c2cf Hooks: Also log EditAttemptStep events via Metrics Platform
The EditAttemptStep instrument is a candidate for migration to the
Metrics Platform [0]. The first step of the migration is to log events
both using the Event Platform (i.e. EventLogging::submit()) and using
the Metrics Platform Client (i.e. via
EventLogging::submitMetricsEvent()).

The Metrics Platform Client can mix in additional information -
so-called context attributes [1] - based on the stream configuration.
Since the majority of the default values mixed into each event in
Hooks::doEventLogging() are already known to the Metrics Platform
Client, the majority of Hooks::doMetricsPlatformLogging() is concerned
with remove those values from the event.

[0] https://wikitech.wikimedia.org/wiki/Metrics_Platform
[1] https://gerrit.wikimedia.org/g/mediawiki/libs/metrics-platform/+/aed6738b845/js/src/StreamConfig.d.ts#31
[2] https://wikitech.wikimedia.org/wiki/Metrics_Platform/Creating_a_Stream_Configuration

Bug: T309985
Change-Id: I052159884a9a8b21b3dc9ee01e2cafdbb173ca26
2023-05-16 15:33:06 -06:00
Jon Robson 91425b5383 jquery.cookie is deprecated
Bug: T271995
Change-Id: Ie46361101043ed6816a6f5079043d971c6ab7f52
2023-05-15 14:08:35 -07:00
Translation updater bot fb3b49b8e9 Localisation updates from https://translatewiki.net.
Change-Id: I79e455fef5654622595b23fe4914ae9e5e19af1b
2023-05-15 08:34:11 +02:00
Translation updater bot 19abe57017 Localisation updates from https://translatewiki.net.
Change-Id: I27f870596cc8b5ddda8d3fb3a420cab702c5c7f0
2023-05-11 09:21:27 +02:00
Translation updater bot 4f415662d3 Localisation updates from https://translatewiki.net.
Change-Id: Iff697dec7af9579f98b8fe279e706e2c84f49da9
2023-05-09 08:56:08 +02:00
Translation updater bot 27872b04b1 Localisation updates from https://translatewiki.net.
Change-Id: I802db6f60d0cb11f36c20cb21d7b31b04fcb7ffa
2023-05-08 10:33:47 +02:00
gerritbot 1271e13c56 Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: Ia2582eefeed7c0a70fcc89857fb30995a6c0f1ed
2023-05-06 22:38:36 +00:00
libraryupgrader a4392294fd build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Idaa03a464c1f8ff45eb099de66df37ec50b4285f
2023-05-05 19:29:45 +00:00
Translation updater bot c9ed8f55e6 Localisation updates from https://translatewiki.net.
Change-Id: I70d29098fd88bf4113fc810ae7eee408c5daf226
2023-05-05 10:41:32 +02:00
Translation updater bot 7b83dc0880 Localisation updates from https://translatewiki.net.
Change-Id: I4f014580002a95c5854c31de0726712b22c58817
2023-05-02 09:00:53 +02:00
libraryupgrader e8bae60bf6 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: I2535dce25df42c655566aeb820d6bf7bb2d49839
2023-04-29 14:35:21 +00:00
Translation updater bot 087627edeb Localisation updates from https://translatewiki.net.
Change-Id: I159d09a4daec35672f0eeb91d61c51babd8b7ef7
2023-04-24 09:17:36 +02:00
Translation updater bot 91a0c4a05f Localisation updates from https://translatewiki.net.
Change-Id: Ic8c4dd9b32dc93b95fb6267b8efbb4fe537253a1
2023-04-18 09:01:40 +02:00
Translation updater bot 1b7feacb07 Localisation updates from https://translatewiki.net.
Change-Id: Iddf6afc2050027b1e293ff130825bda31fe7a094
2023-04-17 09:16:01 +02:00
jenkins-bot e312f83cb0 Merge "Remove hacks that avoid duplicate event logging with MobileFrontend" 2023-04-14 16:36:02 +00:00
Translation updater bot 9bbf9a7c10 Localisation updates from https://translatewiki.net.
Change-Id: Ia749422dfc750c4a67a126c1f4f82ce2757193bb
2023-04-14 09:27:41 +02:00
jenkins-bot c0458e4fbf Merge "Update EditAttemptStep and VisualEditorFeatureUse for IP masking" 2023-04-13 14:02:25 +00:00
Translation updater bot 22570a9258 Localisation updates from https://translatewiki.net.
Change-Id: Ibe3830b571e898a9e78e6d114262fea4e344436c
2023-04-13 08:47:36 +02:00
Bartosz Dziewoński 0c287ea755 Update EditAttemptStep and VisualEditorFeatureUse for IP masking
Bug: T332437
Bug: T332436
Change-Id: I630822accb1ba7332aeca997fa72d0190ed5e75e
2023-04-11 21:58:42 +02:00
Translation updater bot 60dca3a600 Localisation updates from https://translatewiki.net.
Change-Id: I292e48c0622166e1a6941b39280e35b537f30d37
2023-04-11 09:14:31 +02:00
Translation updater bot 538c4dfda7 Localisation updates from https://translatewiki.net.
Change-Id: I5373293b297e23e856846ed2f8a22c0905520772
2023-04-10 09:47:09 +02:00
Bartosz Dziewoński 929e8463fb Remove hacks that avoid duplicate event logging with MobileFrontend
This reverts 843efa2f46,
no longer needed after I6028fa4a34916a6cd20161009cf5893492286c2d.

Bug: T334263
Depends-On: I6028fa4a34916a6cd20161009cf5893492286c2d
Change-Id: Ie4506d46d350fb53d6d0264763c2d55fc142997e
2023-04-06 22:49:06 +00:00
Bartosz Dziewoński b484833c7d Skip server-side event logging unless WikimediaEvents is installed
The corresponding client-side event logging is implemented in the
WikimediaEvents extension, so logging server-side events only doesn't
make sense.

Bug: T322602
Change-Id: I79b55adca1da0d9abfe60943dfa4f8c86ecb9626
2023-04-06 21:12:04 +02:00
Translation updater bot 7eae49ae09 Localisation updates from https://translatewiki.net.
Change-Id: Ief8ac1238eabecee800bf262283271fde3736933
2023-04-04 09:18:31 +02:00