Commit graph

3181 commits

Author SHA1 Message Date
Translation updater bot d655f0f7cc Localisation updates from https://translatewiki.net.
Change-Id: I9ab4be458fd24e1ae9a3ce2b600f1f258536763b
2023-07-31 09:02:18 +02:00
thiemowmde de1dbd70ec Make EventLogging code more robust
This code started to fail when executing the FileImporter tests.
FileImporter triggers a hook that ends here.

Two suggestions:
* I think we don't need/don't want to have log entries for PHPUnit
  test runs.
* In test scenarios getSkin() might return null. Since getSkinName
  is also allowed to be null I believe it's fine when we log null in
  such a situation.

Bug: T337270
Change-Id: I9bf946c150d99ab97b4cdf128fac87158c633331
2023-07-28 16:49:42 +02:00
Translation updater bot dafa391b57 Localisation updates from https://translatewiki.net.
Change-Id: I985e78cb5a889d04fae4a7d0b79cb94a143c670e
2023-07-28 09:21:29 +02:00
ksarabia d7993a35b8 Update reference in WikiEditor
Logs data from WikiEditor

Bug: T337270
Change-Id: I69b4ea31397915ce1e90cff91e44b3648d57f389
2023-07-25 10:55:35 -05:00
Translation updater bot 7ee41eae64 Localisation updates from https://translatewiki.net.
Change-Id: Icf9847a953607b1053cec3ddb6f847fadf1c95ca
2023-07-24 09:40:17 +02:00
jenkins-bot 9fb243f128 Merge "RealtimePreview: Set tabindex on realtimepreview-preview" 2023-07-21 06:09:01 +00:00
Translation updater bot 10f4183225 Localisation updates from https://translatewiki.net.
Change-Id: I42f54719f8fee3d32d01e82601367c7f626106a5
2023-07-20 09:34:18 +02:00
Translation updater bot f2a8b5ae5d Localisation updates from https://translatewiki.net.
Change-Id: If344c1638141f094cf3868bd97c23e11f9fb93f2
2023-07-19 09:02:02 +02:00
Translation updater bot df735ad0e6 Localisation updates from https://translatewiki.net.
Change-Id: Ie0eafa0e0d1374b6fc3a7bf9ec08ca83e123a0b3
2023-07-18 09:50:13 +02:00
Translation updater bot 63d9d75aca Localisation updates from https://translatewiki.net.
Change-Id: Idbe31362a1c06fb1fef638c961ae26c23662d6ff
2023-07-17 10:19:19 +02:00
Translation updater bot 6747b69833 Localisation updates from https://translatewiki.net.
Change-Id: I219275bcf96e5a047fca5d86d42ee24cd110273e
2023-07-14 09:36:21 +02:00
Translation updater bot c711d94cce Localisation updates from https://translatewiki.net.
Change-Id: Ie4109172fc900316eb2bdd6f2ebf8f9bfc92a693
2023-07-13 10:50:41 +02:00
samtar 9c56922e25
RealtimePreview: Set tabindex on realtimepreview-preview
Set tabindex="1" on `ext-WikiEditor-realtimepreview-preview`

Bug: T317108
Change-Id: I06847674ebccf05e8cb45492056222e13cd00ef8
2023-07-12 13:36:31 +01:00
Translation updater bot 2b7077f534 Localisation updates from https://translatewiki.net.
Change-Id: I2f33bd20c40011c2288279d87b5a808187b02a1f
2023-07-12 08:56:43 +02:00
jenkins-bot 8319dc0071 Merge "Add deprecation log message for autoMsg" 2023-07-11 20:14:45 +00:00
Jon Harald Søby dbdc003abb Add deprecation log message for autoMsg
Add a deprecation log message for the autoMsg and autoSafeMsg
functions in WikiEditor. The console output details what needs
to change, and adds a link to on-wiki search for the affected
string.

Depends-On: I2835341867df85552579ea6927cd39a6f889fa6b
Change-Id: I2aea96c8a4097f34b02301083f9db0be95042243
2023-07-11 19:45:59 +00:00
Translation updater bot 3b0b3ddf9e Localisation updates from https://translatewiki.net.
Change-Id: Ib16f93a51d96c1de926a3fa1d9d1bf703943ff8f
2023-07-11 08:50:56 +02:00
Translation updater bot 71d221a100 Localisation updates from https://translatewiki.net.
Change-Id: I1dd3bed0a85efda90329861c7b95989def37eebd
2023-07-10 09:39:25 +02:00
Translation updater bot b5763390a1 Localisation updates from https://translatewiki.net.
Change-Id: I3664dcd589e7b86039618f70d57aedd34a147a5c
2023-07-07 09:11:42 +02:00
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