Commit graph

4200 commits

Author SHA1 Message Date
Translation updater bot 719052e831
Localisation updates from https://translatewiki.net.
Change-Id: Ieb8f89b53569b7def822fc4ed78377bc401a5762
2024-11-05 08:32:25 +01:00
jenkins-bot 98e1b4a34d Merge "Handle hidden revision in more places" 2024-11-04 22:58:30 +00:00
jenkins-bot 197affa825 Merge "Pass message parameters as variadic arguments" 2024-11-04 10:46:13 +00:00
Translation updater bot 16349ccd3c
Localisation updates from https://translatewiki.net.
Change-Id: I50e33fae3d17ed068ede6f63a81f08cf449df991
2024-11-04 08:21:29 +01:00
Ammarpad ad99faef19 Handle hidden revision in more places
Instead of checking section->exists() everywhere we have to call
getTruncatedSectionTitle(), override the method inside
PlaintextEchoPresentationModelSection class to make it always
return string for our case.

Call to getTruncatedSectionTitle() in the following classes now use
the method override:

* RemovedTopicPresentationModel
* SubscribedNewCommentPresentationModel
* AddedTopicPresentationModel

The call to getTruncatedSectionTitle() in CommentThanksPresentationModel
does not need nor use the override.

Bug: T378261
Change-Id: Ibe985da5c1a79c5a1853d9c4896f8769cce6ddfd
2024-11-02 22:15:34 +01:00
libraryupgrader f631ba47ad build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: If3efcd4428b5b5e75a0237ad640d9cf4f8c83c26
2024-11-02 06:55:33 +00:00
Translation updater bot 019c86b0f1
Localisation updates from https://translatewiki.net.
Change-Id: Id1500568c92d673d1b2b136ba8cd38a92c94935e
2024-11-01 08:35:30 +01:00
Bartosz Dziewoński 65951c19d2 Pass message parameters as variadic arguments
Soon to be deprecated in If2ebb6d17ffeacbd95f0ed147ae8f16f90578450

Change-Id: Iaaaa2bf745c2ddcfc6d6d3d15be5ce6f2968cfa8
2024-10-30 21:41:20 +01:00
Translation updater bot 4382b695f3
Localisation updates from https://translatewiki.net.
Change-Id: I1ad029c1b653bf613b17c7b1caa7c52100447147
2024-10-30 08:23:10 +01:00
jenkins-bot 784c28ff70 Merge "Show empty state message if subject doesn't exist but talk page exists" 2024-10-29 15:01:38 +00:00
Ed Sanders a85be7d7b5 Show empty state message if subject doesn't exist but talk page exists
If the subject page/user doesn't exist it usually makes sense
not to show the "Start a discussion about X" message, but when
the talk page itself exists but without any discussions
(e.g. after a Flow archiving), then we _should_ show message to
start a new discussion.

Bug: T378392
Change-Id: I20dab0089691ba7a429c9a50f23b9e3afe61aaaf
2024-10-29 09:54:26 +00:00
Translation updater bot 156fc95696
Localisation updates from https://translatewiki.net.
Change-Id: Ib7c92ddcb4d781381f725cc5e1a55b2dccf5f11e
2024-10-29 08:40:30 +01:00
Translation updater bot 397615186e
Localisation updates from https://translatewiki.net.
Change-Id: Ie989b132a6908028238e69f7f594fcb11c965e3a
2024-10-28 08:22:16 +01:00
jenkins-bot 53b6a17980 Merge "Notifications: Handle suppressed topic titles in notification" 2024-10-26 22:19:13 +00:00
Ammarpad 4a25a985ff Notifications: Handle suppressed topic titles in notification
EchoPresentationModelSection::getTruncatedSectionTitle() has a note that
it should not be called if ::exists() returned false. Among the reason
the section may not exist includes suppressing the revision where the
topic title was added or edited.

Add placeholder message text "(topic removed)", to be used in place of
the unavailable topic title. This is analogous to "(user removed)" which
would be shown along if the username is also suppressed.

Bug: T378261
Change-Id: I6db0872b8724323a5e15eb6a262c2c3d0bdd630d
2024-10-26 15:10:35 +01:00
Andre Klapper 3b67d12a46 Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP
8.4. The explicit nullable type must be used instead.

Bug: T376276
Change-Id: I40b301271ea0ae5d9123b06841eb8d3e4f9fbf86
2024-10-26 14:59:53 +02:00
Umherirrender fef98c5ebe Use type-declaration on api module constructor
Parent class constructor gets type-declaration in 1145328459

Change-Id: I5ec4767b386317b777846edd88d800f80b3bb360
2024-10-25 19:14:20 +02:00
Translation updater bot e08ba7e8dc
Localisation updates from https://translatewiki.net.
Change-Id: I83d4d5cb49d3be509b6a8692fa86352cad572129
2024-10-25 09:47:45 +02:00
Translation updater bot ed132cc837
Localisation updates from https://translatewiki.net.
Change-Id: I5bd1b0597b852548de9c699b040af5935f32c7be
2024-10-22 09:30:14 +02:00
Translation updater bot d4aab4dec0
Localisation updates from https://translatewiki.net.
Change-Id: I0bbf456390b67c4a383e3526cef92dd7e39602cc
2024-10-21 18:17:54 +02:00
Translation updater bot 307bf28eb6
Localisation updates from https://translatewiki.net.
Change-Id: I4efce34fb18294b86637201ea4a633b7666c391f
2024-10-21 09:19:58 +02:00
Umherirrender eef833a112 Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: Ife9826099657bcaeca1beec94863a1600fdf55f8
2024-10-19 23:39:18 +02:00
Translation updater bot a72fbb6ec7
Localisation updates from https://translatewiki.net.
Change-Id: Ia57e4f9dd6471d5ea736142eecc8a8dd51e7540e
2024-10-18 09:24:52 +02:00
Translation updater bot 6f47ee5bf6
Localisation updates from https://translatewiki.net.
Change-Id: I1322e152f9c261b6a4f8c6a2a598c241fddd629d
2024-10-17 09:21:40 +02:00
jenkins-bot c0d0eda2d7 Merge "Do not embed the "You have been subscribed" popup image" 2024-10-15 13:12:41 +00:00
Translation updater bot 53b89715f4
Localisation updates from https://translatewiki.net.
Change-Id: I3c80c2d6f612a74b68d0e60462d6c2cb8c1ef506
2024-10-15 09:40:52 +02:00
Translation updater bot 188befa7ba
Localisation updates from https://translatewiki.net.
Change-Id: Id879e594c4a8403c3529e972bb92af1462d109a0
2024-10-14 09:29:01 +02:00
jenkins-bot 792f3e1d57 Merge "Add dark mode version of SVG image for "You have been subscribed" popup" 2024-10-11 20:51:15 +00:00
jenkins-bot 3250b72488 Merge "build: Provide SVGO for crunching SVG files" 2024-10-11 20:51:14 +00:00
Bartosz Dziewoński 8037be606b Do not embed the "You have been subscribed" popup image
The image is somewhat heavy and only rarely shown (once per user).

Also move the dark mode styles to the same place.

Change-Id: I1f0d37e3f4e1161190ce6ffa549bfa52ced9b0e6
2024-10-11 22:35:48 +02:00
matr1x-101 2f4d87df77 Add dark mode version of SVG image for "You have been subscribed" popup
Bug: T369834
Change-Id: I2a73b02e2f5f737ff521c6f21d32aae72a83b322
2024-10-11 20:31:30 +00:00
Translation updater bot 2092898a76
Localisation updates from https://translatewiki.net.
Change-Id: Idadba43ce3f48539869d62ef1a018847b73e8df4
2024-10-11 09:24:40 +02:00
James D. Forrester 0bfecf9118 build: Provide SVGO for crunching SVG files
Stolen from Codex's version.

Change-Id: Iee6408c42ae2ef13eeadbbf74ec3132c77974279
2024-10-10 18:17:01 -04:00
Translation updater bot cb8cfaa28e
Localisation updates from https://translatewiki.net.
Change-Id: Ibcce923abcc1fcb83daf3282d75f0de0cd168c22
2024-10-10 09:21:35 +02:00
Translation updater bot 5df3995755
Localisation updates from https://translatewiki.net.
Change-Id: I26bb27cbbe9edf37a3ce84a4be02b9abea078a6b
2024-10-08 09:42:31 +02:00
jenkins-bot 17c33d17b2 Merge "Simplify direction specific styles using margin-inline" 2024-10-07 19:27:59 +00:00
jenkins-bot a05737a32a Merge "CommentController: Merge (mode, hideErrors, suppressNotifications) into options" 2024-10-07 19:18:44 +00:00
Ed Sanders 31dc9b4e1c CommentController: Merge (mode, hideErrors, suppressNotifications) into options
Change-Id: Ib8b75fd44fcf560d30e2a6a6f79a9e833c0e5200
2024-10-07 13:39:10 +01:00
Translation updater bot 798a853f8c
Localisation updates from https://translatewiki.net.
Change-Id: Ifbde4eb53b5d5583a680dd6e2fc71f89ce97c46a
2024-10-07 09:25:42 +02:00
Ebrahim Byagowi ba6ce4f7aa Simplify direction specific styles using margin-inline
Bug: T371265
Change-Id: I25046b9982954f47a417a40f8a39c8a4e2f4c6a8
2024-10-07 00:34:25 +03:30
Translation updater bot 34526c78c1
Localisation updates from https://translatewiki.net.
Change-Id: I7cc9ea8310096c3d58c67c2d2b249022d0704719
2024-10-04 09:21:25 +02:00
Translation updater bot 70f3c2a1e4
Localisation updates from https://translatewiki.net.
Change-Id: I1b48ac3f4263aea4a1889f590eb68f3f47114809
2024-10-03 09:16:55 +02:00
Fomafix 22a66a8aa7 Use ?? instead of default value in getRawVal()
Bug: T376245
Change-Id: I2f997b9b39850bc5f2ed31e04f457f43eeb054a2
2024-10-02 10:52:51 +00:00
Translation updater bot 87017807f2
Localisation updates from https://translatewiki.net.
Change-Id: I6f48c00bf3d69fbb4e17d470f96b96ba783ba222
2024-10-02 09:24:02 +02:00
Bartosz Dziewoński 0e16d3ce03 Separate tag help links from their labels
This makes translation easier and improves how the tags are displayed
in the recent changes / watchlist filtering interface.

Renamed messages:
* discussiontools-replywidget-newtopic-link → tag-discussiontools-newtopic-helppage
* discussiontools-replywidget-reply-link → tag-discussiontools-reply-helppage

Bug: T372175
Change-Id: Ifa54afe2495c28d7ee2b0af04176f8a53927fb75
2024-10-01 15:10:00 +02:00
jenkins-bot 376e862288 Merge "Use standard font sizing for DT advanced toggle menu and license description" 2024-10-01 11:11:26 +00:00
jenkins-bot b7251a9412 Merge "Support modern message box markup" 2024-10-01 00:09:38 +00:00
Jon Robson b0cf419f19 Support modern message box markup
The class mw-message-box-warning was replaced with
cdx-message--warning.

Change-Id: I6862aab8980e76372e8f5d974e37ee6f5358e22c
2024-09-30 23:41:59 +00:00
Iniquity b35ea7c65d Use standard font sizing for DT advanced toggle menu and license description
Bug: T356574
Change-Id: I30d635b0fb24fb6ad2761a4970c0cb2586481efe
2024-09-30 17:39:19 +00:00
Derick Alangi c296917ffa
tests: Fix content data for "hu" language code
After I6d82a827e20d18ff4d78d7351aa9e9c08129e400 landed, it caused
DiscussionTools to break in CI, this patch fixes it to use the correct
language code per the patch above.

If this patch passes CI, then the issue is resolved potentially.

Bug: T376020
Change-Id: I5324e5690d25f295d3fc1fb91d8f0f24adcc35e8
2024-09-30 11:11:43 +01:00