Commit graph

1286 commits

Author SHA1 Message Date
Translation updater bot 47a413d74a Localisation updates from https://translatewiki.net.
Change-Id: I588104a5051cbb5af97d5c9c2490e1bfa56693c0
2023-08-11 09:01:41 +02:00
Translation updater bot a38f2e4d04 Localisation updates from https://translatewiki.net.
Change-Id: Ie148c19ad7bc6a185fea5b1c8fe58655cd634dda
2023-08-10 09:41:54 +02:00
Translation updater bot 73400b9a90 Localisation updates from https://translatewiki.net.
Change-Id: I4273c4b9296be3334d0a1907c802efcf3e3c24eb
2023-08-09 09:15:44 +02:00
Yaron Koren e1da9e2d63 Replace "Announce changes" option with (inverse) "Mark as bot"
Bug: T200334
Change-Id: I5b588e0dda95812543b270fbc5aece14a5583c83
2023-08-08 16:13:07 +00:00
Translation updater bot 1286244e26 Localisation updates from https://translatewiki.net.
Change-Id: I2027e715f9514da09b20da5225edf74e8d56b4af
2023-08-07 08:39:32 +02:00
Yaron Koren bea0be9c08 New function, SpecialReplaceText::getReplaceTextUser()
Also did some related code re-formatting.

Change-Id: I19baac3bf0443139b5dc59986b72ae7b5ce1f8b0
2023-08-03 19:40:37 +00:00
Yaron Koren 4c81687814 Remove unused variable from SpecialReplaceText.php
Change-Id: I4f65b23d42709cdb935ea5d0d351e758ec6c4b8f
2023-08-03 18:45:11 +00:00
Translation updater bot a7454c7a3b Localisation updates from https://translatewiki.net.
Change-Id: I5e4d7f7377ab0b0630be6d341d539c8bb2abdfc9
2023-07-31 09:00:41 +02:00
Translation updater bot 2aa80baf9b Localisation updates from https://translatewiki.net.
Change-Id: I5e548541272d66aee7aec23daf3860cf9ab6cb98
2023-07-17 10:18:37 +02:00
Translation updater bot 936e4738dc Localisation updates from https://translatewiki.net.
Change-Id: Id614273f965dff48e69bd8dc53b9cf995ae6fa20
2023-07-13 10:50:05 +02:00
Translation updater bot 43914c9a04 Localisation updates from https://translatewiki.net.
Change-Id: I9fc085d00b3a3ef0438975fa9adaf41800f82171
2023-06-26 12:40:45 +02:00
Translation updater bot 7a2715a05f Localisation updates from https://translatewiki.net.
Change-Id: I07da18174a024c42edcbb04b1216890143338547
2023-06-20 09:50:57 +02:00
Translation updater bot bf1bb201a2 Localisation updates from https://translatewiki.net.
Change-Id: I2a870987584002d2e9971afbbe87f7df3baa4c5d
2023-06-19 11:07:59 +02:00
Fomafix 772a4f5642 Inject service ReadOnlyMode
Also reuse local variable $services for
MediaWikiServices::getInstance() in Job.php.

Change-Id: I0364c64aaf52e229f3e2a2c73c7d4716ec566fae
2023-06-16 22:33:08 +00:00
Abijeet 986b51e5a2 Add ReplaceTextFilterPageTitlesForRename hook to avoid pages to rename
Allows other extensions to specify pages that should not be renamed.

Bug: T313148
Change-Id: I47b4549b90fe30be7a80e74db60d16be6776e7f6
2023-06-15 13:13:30 +00:00
Abijeet f7a6474c72 Add ReplaceTextFilterPageTitlesForEdit hook to avoid pages for edit
Allows other extensions to specify pages titles that should not be
edited.

Bug: T313148
Change-Id: Ia3d8e99fc6a478c1df5064fae44ad8558c968725
2023-06-15 02:25:18 +00:00
Yaron Koren 54b015fc97 Add lines to composer.json to make it valid
Bug: T311321
Change-Id: Idff9f041093e182d5363f6e4e7e2dd5398221e45
2023-06-08 13:11:37 +00:00
Yaron Koren 9c1cb9d568 Fix manual setting of summary in replaceAll.php
Bug: T224863
Change-Id: I50a873084b7ebf3bc95d3da707ff262868592c22
2023-06-07 13:59:35 +00:00
Yaron Koren f572741719 Disable Special:ReplaceText if $wgReadOnly is set
Bug: T58299
Change-Id: Idb08cbccc2262830c3b76bafa06cbfbb8d56eb5d
2023-06-05 16:22:02 +00:00
libraryupgrader 838b6af8d5 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I05d7a141f8c890008f518f1da8260d8e5b63a2ac
2023-06-02 01:41:02 +00:00
Fomafix 6e1ca1e5a6 Show message replacetext_reminder in user interface language
The message replacetext_reminder is shown on the user interface and
should use the user interface language instead of the content language
like the other messages on this page.

Change-Id: I55f084b3b1a7c83aa45f1489be54fc2f8955135e
2023-05-12 05:58:50 +00:00
libraryupgrader d4f3d6b500 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ief23a4692d10c190c5b18a20c5e71de5ce083a01
2023-05-05 10:48:57 +00:00
libraryupgrader aadc1d5c19 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: Ib113cafa0d993fd65df3ff6934055d94837262e3
2023-04-29 09:48:29 +00:00
Translation updater bot 39fe06b1ae Localisation updates from https://translatewiki.net.
Change-Id: Ib26271a4faaad849f91d1709ef77e9f63f67af6c
2023-04-24 09:17:09 +02:00
Fomafix 6042e2f1d7 Remove fixed @todo FIXME
The raw HTML messages were already replaced in 72174c2f.

Change-Id: I34aeec36fb879c9d0e6de0458efa9851dd699eb1
2023-04-19 19:38:21 +00:00
Fomafix 2ab2c04b1b Inject service JobQueueGroup
Change-Id: Id6438abe91b4f60a0fe8cc413cd946b6bb2cdf93
2023-04-07 09:59:17 +00:00
Yaron Koren 8c890f5ce9 Move setting of targetStr to outside of loop
Change-Id: Ibdcd83ce5d4368bf06f2d57261985a71f7b666ab
2023-03-29 18:24:55 +00:00
Yaron Koren 5190b2cd39 Calculate string length separately for each replaced string
If regexes are used, the length of the target string is not always (or even ever) the length of the user-specified "target".

Change-Id: Id693a5f29e4d5bd0a7b420286a525971d56b4b60
2023-03-28 12:50:30 +00:00
Winston Sung 40858a4894 ReplaceText: Special page aliases should not store in zh
Bug: T286291
Change-Id: I01f8dd76334dea0e90820c8b52ccf4df786f7859
2023-03-22 12:22:26 +00:00
libraryupgrader 37a50fa4da build: Updating npm dependencies
* eslint-config-wikimedia: 0.20.0 → 0.24.0
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.1 → 0.14.0

Change-Id: I2f6b83af9c81ef9160bf14d92d01235a8c83e37c
2023-03-15 22:53:07 +00:00
libraryupgrader 134cfc72ca build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage

Change-Id: Ic9a9253e8a249e76b9017d7c3214bce219db7682
2023-03-12 09:15:50 +00:00
jenkins-bot a919ddf8ef Merge "Make Special:ReplaceText work for contents based on TextContent" 2023-02-23 13:00:47 +00:00
Umherirrender 9a9a8c940f build: Resolve npm peer dependencies in package-lock.json
Run "npm dedupe" to resolve peer dependencies in package-lock.json,
a update can fail with missing or invalid packages on peer deps
More information https://github.com/npm/cli/issues/5113 / T325299

Change-Id: I8717bda366d1810973ae3da052c1fb9732811a08
2023-02-17 22:58:15 +01:00
jenkins-bot 9b0f7ff6fe Merge "Don't add a link to Special:ReplaceText if the user has no permission" 2023-01-27 21:34:02 +00:00
Fomafix eb35dd8b85 Remove default value null on second parameter of LinkRenderer::makeLink
Change-Id: Icd566d7dc4f8ed81078f3e9f12f7603afc61012a
2023-01-26 21:43:55 +00:00
jenkins-bot 2dac8f31df Merge "Remove loading of style module 'mediawiki.special'" 2023-01-26 20:29:53 +00:00
Fomafix d42d31a89e Don't add a link to Special:ReplaceText if the user has no permission
Change-Id: I72a9d6ef96a5843ade002dfe1e408e35c1c2d6c4
2023-01-19 22:59:43 +00:00
Fomafix 82cc22a9f2 Inject Config and replace global variables
Change-Id: I824ed32728ab4ce8e532734890ac51a4a4527d8a
2023-01-18 19:39:23 +00:00
Fomafix ad9de84501 Use HookHandlers and inject services
For LinkRenderer use SpecialPage::getLinkRenderer.

Bug: T271025
Change-Id: Ibde96ffce089f77e85826f0ec5b446b81fac8240
2023-01-18 19:39:12 +00:00
Translation updater bot 805e10e058 Localisation updates from https://translatewiki.net.
Change-Id: I4505d94f4871e1a954fafbd5d43e2122bf0cd56d
2023-01-11 09:02:31 +01:00
Translation updater bot 051b7ac8ae Localisation updates from https://translatewiki.net.
Change-Id: I728f3de247e714c99f3c761958950fbba594b9cb
2023-01-09 09:28:45 +01:00
Func a2b09220fe Make Special:ReplaceText work for contents based on TextContent
The check for TextContent is added in ed9c752, which is good, but
not all codes updated to work for contents based on TextContent.

Works well with css, js, sanitized-css (TemplateStyles), and Scribunto
content models acording to my test.

Change-Id: I9ea9d1474de7dd4207924bd038a8c62ec55726bb
2022-12-25 17:03:13 +08:00
Translation updater bot 8d77ba0ee8 Localisation updates from https://translatewiki.net.
Change-Id: Ic6ca932bf7c6f36bb71f930ed547307f19171d4f
2022-12-21 09:17:42 +01:00
Translation updater bot 9414710bac Localisation updates from https://translatewiki.net.
Change-Id: Ibe7700403d76d2ec97f4a87ec7f71b9666e3fc38
2022-12-15 11:36:45 +01:00
Translation updater bot e56d11cb53 Localisation updates from https://translatewiki.net.
Change-Id: I6af5d477802b1bc21ecfacfa654571c0a47aafe6
2022-12-13 08:17:29 +01:00
jenkins-bot a6cc8c6ef4 Merge "Replace $wgLang by $this->getLanguage()" 2022-12-03 20:46:59 +00:00
Translation updater bot ed73238351 Localisation updates from https://translatewiki.net.
Change-Id: I45b8ce2326dba20ca7a2e99534fc8ee5e7f5a3e2
2022-11-29 08:59:14 +01:00
Translation updater bot 0624163acd Localisation updates from https://translatewiki.net.
Change-Id: Ia6282de1593907bdb8eedb6d8f0742f68e25c510
2022-11-28 08:50:11 +01:00
James D. Forrester e41c493a68 Drop backwards-compatibility; this is a tarball extension
Tarball extensions follow the branch versions development policy.

Change-Id: I4ad623f61b4113ec76d2abf9e013de483e56170c
2022-11-17 16:16:59 -05:00
jenkins-bot 4ec204fc3f Merge "Use single quotes instead of double quotes in PHP" 2022-11-17 20:10:31 +00:00