Commit graph

7183 commits

Author SHA1 Message Date
jenkins-bot bc08edbcbf Merge "Test:Replace db with getDb method" 2024-07-08 09:30:44 +00:00
Translation updater bot e0291b8b69
Localisation updates from https://translatewiki.net.
Change-Id: Ibe82a761a3584a1e5cb6ae08a00a6469ee342975
2024-07-08 09:32:48 +02:00
thiemowmde 7845b5fab1 Fix mistake in gender support for user group changes
This was a mistake in I53c0283, sorry. There are two users involved:
The "agent" is the user (typically an administrator) that made the
user group change, while the "viewing user" is the user for which the
user group was changed. When the "agent" moves the "viewing user"
into a new user group, the "viewing user" is the one that's now
a member of that group. They are what dictates the gender for the
"group-…-member" message.

Is this mistake bad enough for a backport?

Bug: T368249
Change-Id: I4916de2fb171873b625e51ee8823811e0296d323
2024-07-05 20:18:56 +02:00
Wandji69 633682d56d Test:Replace db with getDb method
Bug: T316841
Change-Id: Ia135648c0666632165bfbe29b6587e6676082d54
2024-07-05 17:08:51 +01:00
agamyasamuel 9b0010d25e fixed typo: exists -> exist
Bug: T368278
Change-Id: I19cbd5e599315b53dd3c00d0a515b86cddedd8ba
2024-07-04 03:17:13 +05:30
Translation updater bot 211e0fe90c
Localisation updates from https://translatewiki.net.
Change-Id: I78554d5ccbf66fb7de1a8d58b68ae1b6a2895b8b
2024-07-03 09:26:18 +02:00
Translation updater bot d6b52e777b
Localisation updates from https://translatewiki.net.
Change-Id: Ief5e2daab54055f6bd946394e4edb6ae5e88f654
2024-07-02 09:49:31 +02:00
jenkins-bot 73c2f5b2a1 Merge "Fix incomplete gender support for user group changes" 2024-07-01 08:02:31 +00:00
Translation updater bot 4b9042a6ed
Localisation updates from https://translatewiki.net.
Change-Id: I26905c9c51af21f563a3eda9011ca4d816e9bbfb
2024-07-01 09:25:12 +02:00
thiemowmde eaa1fea890 Fix incomplete gender support for user group changes
This affects primarily the message
"notification-header-user-rights-add-only" which is very priminently
seen by every new editor that made their first few edits and gets
promoted to the next user group a few days later. Turns out the code
was just incomplete. All the information about the user and their
gender is already there, it was just not forwarded correctly.

Notice there are two messages:
* "group-…" messages don't have gender support. This is the (ideally)
  gender neutral name of the group. Meant to be used as e.g. section
  heading for a list of users.
* "group-…-member" is the same with gender support. To be used in all
  contexts that are about a single, specific user with known gender.
  Which is exactly what's happening here.

Turns out we can even use a neat convenience function from the
Language class that does exactly what we need.

I can't tell why but the array_values is apparently critical.
Originally added via I49b5fe5. It can't hurt so I keep it.

Bug: T368249
Change-Id: I53c028375d77c93f399538fd38aa8f8af30934b0
2024-06-28 11:49:10 +02:00
Translation updater bot 8b9e747966
Localisation updates from https://translatewiki.net.
Change-Id: Ia681222080e3543a8e3102bd63a98b2be9a05f0d
2024-06-28 09:41:25 +02:00
jenkins-bot b6868dbe70 Merge "Don't hold reference to MediaWikiServices instance in tests" 2024-06-27 07:52:41 +00:00
Translation updater bot 9a857c8c16
Localisation updates from https://translatewiki.net.
Change-Id: I32129b7af0c8dd41adcab046c01e8af69dc4aa0d
2024-06-27 09:20:38 +02:00
thiemowmde c246f71eb6 Remove unused param from notification-bundle-header-page-linked
The duplicated parameter $6 is unused since 2016, see Iabeaae7.
Nothing is left that uses the parameter. I also checked for local
on-wiki overrides via GlobalSearch.

Bug: T368249
Change-Id: I8a5975347756f2fd5f5e065112ddc38d829e89ed
2024-06-26 13:20:05 +00:00
Ed Sanders b75056fe82 build: Update jsdoc-wmf-theme to 1.1.0
Bug: T368081
Change-Id: Iac00e54ddb5e31ed34da513abf70196437d151c9
2024-06-26 11:31:52 +01:00
thiemowmde e87cf704f4 Don't hold reference to MediaWikiServices instance in tests
There is no guarantee the MediaWikiServices instance is still valid.
Other tests can reset it.

Bug: T368390
Change-Id: I92de60b2ba5fb66af957a800ce85773db58303cc
2024-06-26 11:27:22 +02:00
Wandji69 231ce97335 Use ObjectCacheFactory instead of ObjectCache method
Bug: T363770
Change-Id: I685ee42b11fab3bb56810af65a1334573d16da8a
2024-06-26 10:19:13 +01:00
Translation updater bot 1ebe4aa8e4
Localisation updates from https://translatewiki.net.
Change-Id: Id3abbe5591fa40d304114c8b6c01015e0c67dac6
2024-06-26 09:21:21 +02:00
bwang 8e635e0bca Fix dark mode issues on Special:Notifications
Bug: T358405
Change-Id: I3c7e1c1884484386df9ef8f54d48af06e9a6c2d2
2024-06-25 19:18:52 +00:00
jenkins-bot 6bff6d7c00 Merge "Fix copy-paste mistake in message documentation" 2024-06-25 10:57:07 +00:00
Translation updater bot 9d2aaba76d
Localisation updates from https://translatewiki.net.
Change-Id: Ic67e0b2504f66722005264306b1302b5c2d01dd4
2024-06-25 09:30:07 +02:00
thiemowmde b983ce7581 Fix copy-paste mistake in message documentation
This is a copy-paste mistake from the message directly below.
Happened in Ibe0092a not long ago.

Also add some comments to make it easier to find the places where
seemingly unused messages end being used.

Bug: T368249
Change-Id: I709c0f14978daad8c98f1f8edf52ef28029c6d40
2024-06-24 09:07:19 +00:00
Translation updater bot cfaeca26cb
Localisation updates from https://translatewiki.net.
Change-Id: I25fc39567e161d58e7d6fa7b68bcd0958f8b22a7
2024-06-24 09:25:13 +02:00
Novem Linguae 323f99060e rename .jsdoc.json to jsdoc.json
Bug: T368082
Change-Id: Icfca32a997ddb0acb2cd24d138729eb610d16eee
2024-06-22 07:45:21 -07:00
jenkins-bot d360544b4f Merge "Replace "the user talk page of" with "the talk page of user"" 2024-06-22 11:51:07 +00:00
jenkins-bot a7d03e3517 Merge "Improve messages that talk about "users" that aren't users" 2024-06-22 11:47:41 +00:00
thiemowmde cc8caffd22 Improve messages that talk about "users" that aren't users
The main motivation here is to make these messages easier to
localize. The English versions aren't necessarily wrong, but a bit
ambiguous and hard to localize in languages like German where the
word "user" needs to be gendered.

Note these are error messages.

Change-Id: I76d58120e86730ee69216a87349b08f94e7b979e
2024-06-22 00:43:14 +02:00
thiemowmde 6af8bb017a Replace "the user talk page of" with "the talk page of user"
The main motivation here is to make this easier to localize. For
example, in German the word "user" needs to be gendered depending
on the user's preference. But the user name appears only much later
in the sentence, after "of". It appears like this can easily be
improved and even the original English message reads better then,
doesn't it?

Change-Id: I055481edbd572334bd2fffdcad9da67376ca5464
2024-06-22 00:27:30 +02:00
thiemowmde 12dc657c79 Simplify "my user talk page" to "my talk page"
I believe that saying "my talk page" is canon and really more than
enough. Even less confusing, especially when compared with the other
messages that talk about "my user page".

An additional motivation here is to make this easier to localize.
This turns out to be especially relevant in languages like German
where "user" needs to be gendered. We can avoid this here entirely.

Change-Id: I6588032d2b54e3729200c3342d668fc445f46312
2024-06-22 00:22:17 +02:00
jenkins-bot b818832d4e Merge "Adjust notification popup arrow in small screens" 2024-06-21 19:07:21 +00:00
Sergio Gimeno 1d0b6052e6 Adjust notification popup arrow in small screens
Use the max width breakpoint from wikimedia-ui-base
to add or remove popup container padding. That is
because the container has no padding in small
screens (when Vector's header breaks in two rows).

Bug: T366672
Change-Id: Idb0f844189cc221009cbb3e06c8c3fe0096bd0c2
2024-06-21 18:17:32 +02:00
Translation updater bot b970f614c2
Localisation updates from https://translatewiki.net.
Change-Id: I89195eae380143f8bac44d582862e2294445c146
2024-06-21 09:41:48 +02:00
bwang 781d532180 Enable dark mode for echo overlay
Bug: T366322
Depends-on: I01cdde979b2ddf64d54013466a3fe51a493860cc
Change-Id: I90f2c3c5098a418a7e40204c9b2384711b6ddce3
2024-06-20 14:40:17 -08:00
jenkins-bot 08136cbf03 Merge "Fix Special:Notifications" 2024-06-20 12:01:00 +00:00
Michael Große 6a9528fd11 Fix Special:Notifications
This was broken when replacing `$.extend` by `Object.assign` in
I1e603647c161bf940690f85f676edd7ebde7917d (commit 47ea647).

`Object.assign` fails when the first argument is `undefined`, but
`$.extend` doesn't.

Bug: T368029
Change-Id: I13025a783c7f4d173dce096efa47f659273f0dd5
2024-06-20 12:49:32 +02:00
Translation updater bot 9130865d56
Localisation updates from https://translatewiki.net.
Change-Id: Iae2eb56629cc34de5904b07aace5419182861946
2024-06-20 09:23:03 +02:00
Umherirrender f0a7879035 Use own namespaced classes in extension.json
Also write the callable as one string in extension.json,
the newline makes it hard to read as callable.

Change-Id: I6e670907aa36effa4b9485fafbb59918d62e2f2a
2024-06-19 21:53:16 +02:00
Translation updater bot 9e177c7149
Localisation updates from https://translatewiki.net.
Change-Id: I1f9965151594d1f4d6bfb3c047fb3bc8dc5c8009
2024-06-18 09:27:30 +02:00
Translation updater bot aa1bc8ac9a
Localisation updates from https://translatewiki.net.
Change-Id: I0628e7740ba5c7cfd79a1cf5b7283c9c2377b729
2024-06-17 09:30:44 +02:00
Translation updater bot 2a4e100a32
Localisation updates from https://translatewiki.net.
Change-Id: Id7f350f5b0abc8a9429776e1daa7407b4e9ca9ef
2024-06-14 09:48:51 +02:00
Ed Sanders c191982a81 build: Update stylelint-config-wikimedia to 0.17.2
Change-Id: Ide5b1395ea50e3d9fb15ca4690bce1cb9be90715
2024-06-13 16:12:07 +00:00
Ed Sanders 47ea647e45 build: Update eslint-config-wikimedia to 0.28.2 and autofix
Change-Id: I1e603647c161bf940690f85f676edd7ebde7917d
2024-06-13 16:11:59 +00:00
Ed Sanders 83024319a4 Convert some local functions to arrow functions
Change-Id: Ib16745cea5502e296d05255ec836c24779aeca64
2024-06-13 16:15:19 +01:00
Ed Sanders 45ba7840da Convert local function to arrow function to fix context
Bug: T367366
Change-Id: Ie6554c869ce804445b6678d74eee9550b9dc82f9
2024-06-13 15:59:19 +01:00
Translation updater bot dbb6e56eba
Localisation updates from https://translatewiki.net.
Change-Id: Ie84c53b051c3b654e11cdbaf7624693780fa0844
2024-06-13 09:28:00 +02:00
Umherirrender a51c944567 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I3d7a1ffe167b69d3f4ce51d0c248c758e1cdd70c
2024-06-12 20:31:47 +02:00
Translation updater bot a890a9a0d4
Localisation updates from https://translatewiki.net.
Change-Id: Icb0de30d5b63902180c0dfb04ae2175601ff72f0
2024-06-12 09:22:00 +02:00
Translation updater bot fe613f1fea Localisation updates from https://translatewiki.net.
Change-Id: Ibfda319503648c9579f7c0cae3d03b5fb3531fae
2024-06-11 09:54:15 +02:00
Ed Sanders e32df234c0 JSDoc: Use externals plugin
Change-Id: Id492d96318cb4b5c7abe99b81d077b3a5409bf3f
2024-06-10 16:04:02 +01:00
Translation updater bot 816be81d59 Localisation updates from https://translatewiki.net.
Change-Id: Ic0c2613d0a463b16f9717188489f49d191b493be
2024-06-10 09:55:15 +02:00