提交图

5451 次代码提交

作者 SHA1 备注 提交日期
Translation updater bot 85653a4f9c Localisation updates from https://translatewiki.net.
Change-Id: Ie31e70014bfe193e6e0702d2b848c46b3d3fcb14
2024-05-16 09:27:58 +02:00
Fomafix 60765094dd Inject services into Hooks
Change-Id: I49efd4ad235a82b9742d846cb999676aea690b43
2024-05-15 16:20:05 +00:00
Translation updater bot 39a79dc346 Localisation updates from https://translatewiki.net.
Change-Id: I5db5eecdc0d42fb18fc78272bd5de15620808413
2024-05-15 08:15:43 +00:00
Translation updater bot ea10a636fb Localisation updates from https://translatewiki.net.
Change-Id: Idb1761f6b12db3a4903baa1707e15da66843c17f
2024-05-14 09:27:50 +02:00
jenkins-bot 86df75cf5a Merge "Step 1 of renaming sr-ec and sr-el to sr-cyrl and sr-latn" 2024-05-14 02:07:39 +00:00
Translation updater bot 513b636376 Localisation updates from https://translatewiki.net.
Change-Id: I3452e880b8c94f7079b5fed1254499870c91650f
2024-05-13 09:28:32 +02:00
Translation updater bot 3f610a493f Localisation updates from https://translatewiki.net.
Change-Id: I06acd5e21892c61c32bf0e713e85e41abbfe491b
2024-05-10 09:30:46 +02:00
Translation updater bot 199939ea42 Localisation updates from https://translatewiki.net.
Change-Id: I0f2099cbe23c3fcbae8a3d8ee1602e85fc726b04
2024-05-09 09:41:29 +02:00
libraryupgrader 31330d5871 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I2592f5d42d9b383ca160fdcba8ca9f15d6886e08
2024-05-08 10:41:18 +00:00
Translation updater bot 8f4a4146d0 Localisation updates from https://translatewiki.net.
Change-Id: Ic16bd11855b8017a0dd7d283736880cb01fb241e
2024-05-08 09:24:39 +02:00
jenkins-bot b5f6b5abb3 Merge "Add messages for Polish sysop wiki (sysop_plwiki)" 2024-05-07 15:32:14 +00:00
gerritbot a897e4376e Add messages for Polish sysop wiki (sysop_plwiki)
Bug: T361041
Change-Id: Ieadf210c92d2ba6de26ce8f3c499282520fcb678
2024-05-07 15:11:27 +00:00
Translation updater bot 48c42b1a7c Localisation updates from https://translatewiki.net.
Change-Id: I8387bdaf22c9d60c0376cfda7030160b5d2476ab
2024-05-06 09:27:05 +02:00
Dreamy Jazz 47bba9d407 Move service option keys to CONSTRUCTOR_OPTIONS
Why:
* The standard format for ServiceOption keys is to provide them
  in a const named CONSTRUCTOR_OPTIONS.
* Doing this makes it possible to assert that the required keys
  are in the ServiceOptions instance passed in the constructor
  (as it may be called directly without using ::factory).

What:
* Move the ServiceOptions keys to a CONSTRUCTOR_OPTIONS const in
  Hooks.php
* Reference this constant in the ::factory and ::__construct
  methods.

Change-Id: Icba2eadc9faf4a15abf4d52efa541e5ddb0294bd
2024-05-05 15:50:14 +00:00
Dreamy Jazz 94be0327e4 Start on PHPUnit tests
Why:
* The WikimediaMessages extension currently has no tests.
* This is not ideal, considering that the extension is deployed on
  WMF production and can be run on every page load (such as
  through the ::onBeforePageDisplay hook).
* Testing the extension makes the code easier to maintain
  and more reliable to regressions.

Why:
* Add some unit tests that cover a few easy to cover areas of
  Hooks.php.
* This is done separately to make it easier to see the coverage
  change in future patches.

Bug: T315774
Change-Id: I916668ae0375e8668b09a16111d83bf2e2feee40
2024-05-05 12:27:18 +00:00
Dreamy Jazz bfc492e36e Remove Watchlist and RecentChanges guided tours
Why:
* The Watchist and RecentChanges guided tours implemented in this
  extension are set to not show for new users. Furthermore, in
  T217451 the task description describes about how this tour should
  probably be removed.
* Keeping the tour around leads to extra ResourceLoader modules
  and when users are not shown it when first interacting with the
  RecentChanges and Watchlist pages, it means that this is not
  necessary and keeping it doesn't outweigh the performance
  benefit.

What:
* Remove the GuidedTour code related to the watchlist and
  recentchanges from ::onResourceLoaderRegisterModules
* Remove the ::onChangesListSpecialPageStructuredFilters,
  ::isOresAvailable, ::onLocalUserCreated, and ::onGetPreferences
  methods from Hooks.php as no longer needed (including then
  removing the hook definitions in extension.json related to
  the removed methods).
* Remove the i18n strings, less files and JS files associated with
  the now removed GuidedTour.
* Remove the the `modules/images` folder as all the files were used
  in the now removed GuidedTour module.
* Remove the dependency injection of the UserOptionsManager as it
  is no longer used.

Bug: T217451
Change-Id: I13f08bb5ecea3c9d4de3372185da9343b0d57c8d
2024-05-05 11:36:41 +00:00
Dreamy Jazz c60cf80a39 Use extensionRegistry property over call to ::getInstance
Why:
* The Hooks.php file has a property for the ExtensionRegistry
  instance being used for the class.
* However, some methods in the class call ExtensionRegistry
  ::getInstance directly and don't use the property.
* This makes it harder to unit test the methods that call
  ::getInstance, so using the property (which can be set as a
  mocked version) is better.

What:
* Replace calls to ExtensionRegistry::getInstance in all methods
  of Hooks.php that are not static (and are not ::factory)
  with a usage of the extensionRegistry property.

Change-Id: I97c1e3407d8930c094f8b3fc6f1b3cb9552c175f
2024-05-04 20:27:49 +00:00
Dreamy Jazz 8dde4b458b Remove IPInfo feedback links
Why:
* Active development on IPInfo has now concluded for the time being
  and only one piece of feedback was added in 2024.
* Removing the link also reduces the amount of untested code in
  the infobox.js file. While the ResourceLoader module needs to
  stay, it does remove one dependency and a message key from the
  definition.

What:
* Remove the 'Feedback' link in infobox.js
* Remove the message used for the feedback.
* Remove the 'oojs-ui.styles.icons-interactions' dependency and
  removed message from the ResourceLoader module.

Bug: T362538
Change-Id: I038e0ed100e83734b1484ff3978fcb8af22259db
2024-05-04 17:28:31 +00:00
Dreamy Jazz b53ecc7477 Remove feedback link for Special:Investigate
Why:
* WikimediaMessages defines a feedback link for Special:Investigate
  using the ::onCheckUserSubtitleLinks.
* However, the feedback page that this links to is now a soft
  redirect and the last comment was made in 2021.
* Removing this feedback link is therefore good because it is not
  being used and therefore keeping it in WikimediaMessages is
  not necessary.

What:
* Remove Hooks::onCheckUserSubtitleLinks and remove the associated
  Hooks configuration.

Bug: T364213
Bug: T315774
Change-Id: I4b06eb7e5ef9fb4747393fd234ae9a6081061f6d
2024-05-04 17:28:31 +00:00
Dreamy Jazz dc7b58b916 Use MainConfigNames for core config
Why:
* MainConfigNames allows the use of core config values without
  having to use strings. This makes it easier to find usages
  using code searching.
* The Hooks.php file uses core config values as strings instead
  of MainConfigNames

What:
* Replace core config defined via strings with usages of the
  MainConfigNames class.

Change-Id: I0234dbdf1f43ea028dfeeeaf6276ca9370e7ffde
2024-05-04 17:28:31 +00:00
Amir E. Aharoni 1c953b58f2 Make a license message less repetitive
Change-Id: I77042d29f5b04b09806433261d507a2e9c7f66dd
2024-05-04 18:56:06 +03:00
multichill 3e0d7ec683 Add and fix some wm-license messages
Doing a bit of clean up on Commons

Bug: T337952
Change-Id: Id5895a299bc8752b5cafe18e501b8245c0e885b3
2024-05-04 15:20:37 +02:00
Translation updater bot cec712ebd3 Localisation updates from https://translatewiki.net.
Change-Id: Ib49658d1bfc177b4bd252fbc488a632129d7821e
2024-05-03 09:30:09 +02:00
Translation updater bot 769090138d Localisation updates from https://translatewiki.net.
Change-Id: Id5362b97a59dbcf0695fc21604569bb79260791f
2024-05-02 09:20:33 +02:00
Dreamy Jazz 9fa7d5d3ba Use bullet points in the temporary account preference description
Why:
* In I2cec02d3be5decbbe207e706f6398b8cb8046381, it was made
  possible to define description text that is added above the
  checkbox that is used to allow a user to view temporary account
  IP addresses.
* On WMF wikis, the description currently has a list without the
  use of bullet points. Using bullet points is only possible if
  this text is put in the element above which allows raw HTML.
* This means that the message override for the preference text
  added in 6ec964289c needs to be
  updated to use a diffferent message key and the text associated
  with the message key to use bullet points.

What:
* Rename the 'wikimedia-checkuser-tempaccount-enable-preference'
  key to 'wikimedia-checkuser-tempaccount-enable-preference
  -description'.
* Update the text in the renamed message key to use an unordered
  list for the list like content.

Bug: T327281
Depends-On: I2cec02d3be5decbbe207e706f6398b8cb8046381
Change-Id: I44cfcddfae3949470f8b48463fd132139a366a3e
2024-05-01 14:28:43 +01:00
Translation updater bot d0898ca7bd Localisation updates from https://translatewiki.net.
Change-Id: Ia1d0d7bdbb50012208447f5f5ff921146cc0696a
2024-05-01 09:23:07 +02:00
Dreamy Jazz c301732c03 Provide Wikimedia specific text for InvestigateBlock targets warning
Why:
* A warning that is displayed when a user tries to use
  Special:InvestigateBlock to block accounts and IP addresses in
  the same use of the form was added in the commit
  2b8ef31cb661596be2e4ebdac40de560e9d3e1ce.
* The message mentioned that the use of the form may violate the
  privacy policy for the site, but did not link to any specific
  page.
* For Wikimedia wikis this should link to the 'Access to nonpublic
  personal data' policy ( https://w.wiki/96nJ ).
* Some wikis may choose to link to their policy which is more
  restrictive than the policy, but in general this should be
  displayed over all wikis and as such needs to be defined in this
  extension to override the message for Wikimedia wikis.

What:
* Define an override for the 'checkuser-investigateblock-warning
  -ips-and-users-in-targets' message in the wikimediaoverrides
  folder.
* Add this message key to the Hooks::onMessageCacheFetchOverrides
  method.

Bug: T362548
Change-Id: I032c4bec456211b3f86d28f0c28b01059833866c
2024-04-30 17:19:39 +01:00
Translation updater bot d0e5ab52df Localisation updates from https://translatewiki.net.
Change-Id: I550b7160c1f63d590f574dfe4291ab7707a78389
2024-04-30 09:21:36 +02:00
Translation updater bot d54db64724 Localisation updates from https://translatewiki.net.
Change-Id: Ibe360af11bb33410f641b8b520bc2d60c529877d
2024-04-29 09:24:42 +02:00
Translation updater bot e60f6547fc Localisation updates from https://translatewiki.net.
Change-Id: Iadd6e59ab3f96d924bcff6ea8c877ef600f44026
2024-04-26 09:49:36 +02:00
Translation updater bot aef94ae3ca Localisation updates from https://translatewiki.net.
Change-Id: I8849ec62b178f43bcfc13be8566365baaa4c3db7
2024-04-25 09:18:33 +02:00
Moh'd Khier Abualruz e2f5e73126 fix(WikimediaMessages): Correct class naming in theme-night.less
This commit corrects a typo in the class naming for French Wikipedia
infobox styles in the night mode stylesheet. The error corrected
involves changing `infobox---frwiki` to the proper `infobox--frwiki`.

Changes:
- `theme-night.less`: Corrected the class name for `.infobox--frwiki`
  from three dashes to two, aligning it with the intended naming
  convention and ensuring the styles apply correctly in night mode.

This typo correction ensures that the night mode styles are accurately
applied to the specified infobox elements on French Wikipedia.

Bug: T359644
Change-Id: Id04128f6ce0c24e03c9cf1b97cee3250123d2b58
2024-04-25 00:52:35 +02:00
Jon Robson 451863a37f Use color-base instead of #333
The color in light theme is color-base (202122) not #333
so this is creating issues in the night mode theme where backgrounds
are optimized for that color choice

Follow up to 1f564dfb236be45b5892d0fac37b94f5a7ab66bc

Bug: T358797
Change-Id: Idf7750b180b46b6a7cad35068c405428c4c9c955
2024-04-24 19:45:44 +00:00
jenkins-bot 1a2cccd2ca Merge "feature(WikimediaMessages): Enhance night mode CSS for infoboxes compatibility" 2024-04-24 18:00:54 +00:00
Moh'd Khier Abualruz e70d1e9ade feature(WikimediaMessages): Enhance night mode CSS for infoboxes compatibility
This update targets CSS conflicts in night mode, particularly
for French Wikipedia,this change focuses on
infobox compatibility with the French wikipedia.

Changes:
- `theme-night.less`: Applied specific styles to `.infobox`
  and `.infobox---frwiki` to improve compatibility.

Additional Context:
- Opting for `.infobox---frwiki` as a temporary measure
  allows focused adjustments without broader impact.
- Ongoing discussions aim to refine a strategy that could
  reduce CSS complexity while maintaining clarity and
  functionality across projects.

Bug: T359644
Change-Id: Ic0520c476685fb886d64de45dea1f2ed00e24039
2024-04-24 16:55:42 +02:00
Translation updater bot 338feefa97 Localisation updates from https://translatewiki.net.
Change-Id: Icb79cf48a86464eb0c16b4d866286f959990fdd3
2024-04-24 09:19:27 +02:00
gerritbot 99873e16e2 Add messages for Karakalpak Wiktionary (kaawiktionary)
Bug: T362135
Change-Id: I5f4e1af8e0c2771f7fccc706b42acd6349d1f694
2024-04-23 22:54:16 +00:00
jenkins-bot 7779610b8e Merge "Add messages for Malay Wikisource (mswikisource)" 2024-04-23 22:34:02 +00:00
jenkins-bot 665e556d91 Merge "Add messages for Igala Wikipedia (iglwiki)" 2024-04-23 22:30:24 +00:00
gerritbot 348bd4c617 Add messages for Malay Wikisource (mswikisource)
Bug: T363039
Change-Id: I23434175d38bc68e33f3610ebe69cecb55cd7a58
2024-04-23 22:08:51 +00:00
gerritbot 9604506018 Add messages for Burmese Wikisource (mywikisource)
Bug: T361085
Change-Id: I3d45f97802a09f8e183eba41ce385009ca9bcce9
2024-04-23 22:08:10 +00:00
gerritbot 3bbe39610b Add messages for Igala Wikipedia (iglwiki)
Bug: T361644
Change-Id: Ie48aa40739761b881c932e4c8d0822bbfd05861d
2024-04-24 00:02:22 +02:00
gerritbot 39c39801dc Add messages for Georgian Wikisource (kawikisource)
Bug: T363085
Change-Id: I89bce097a2e57133616068b2dbfecc4d65d9e961
2024-04-24 00:01:12 +02:00
Translation updater bot 0ad859c424 Localisation updates from https://translatewiki.net.
Change-Id: I5b48bc0f976f5c0624b7a00142df915051c0a2ce
2024-04-23 09:29:24 +02:00
Translation updater bot 1f05af98d1 Localisation updates from https://translatewiki.net.
Change-Id: Ifb3e5b9a15092549185e395a0b26db48b9f54ac1
2024-04-22 09:30:28 +02:00
libraryupgrader c8470e3aec build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I900e583ecba34dcb2487d8bd4c6de7ea50ff7d0a
2024-04-20 12:51:43 +00:00
Translation updater bot d708059dbb Localisation updates from https://translatewiki.net.
Change-Id: I0ada35b9e794e60d8a5e60902c9e187a4ba188fa
2024-04-19 09:48:17 +02:00
Translation updater bot d6cf4e74dc Localisation updates from https://translatewiki.net.
Change-Id: Id04a6ac8ff310368e271eae43cb104fd999718d2
2024-04-18 09:21:48 +02:00
Jon Robson 7f940f9446 Upstream tablet infobox styles
Infoboxes are meant to float on tablet devices but this is currently
not happening. This is because we forgot to upstream
https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/master/resources/skins.minerva.base.styles/content/tablet/hacks.less

This patch upstreams those styles
Follow up to I3cd7ff398008b5505401340729c7f0a3d962b2c0

Bug: T3603861
Change-Id: I7bdf60fae1a9c21999399692b13f7a840f10424e
2024-04-17 14:39:26 +00:00
Translation updater bot d7e56e532f Localisation updates from https://translatewiki.net.
Change-Id: I3df119d3390541481cbcfd8fecf2a7c10404baeb
2024-04-17 09:29:14 +02:00