From a50a18cd23f481213768b4aafbda6251cee5cbea Mon Sep 17 00:00:00 2001 From: addshore Date: Fri, 26 Feb 2016 10:28:16 +0000 Subject: [PATCH] Link to Special:WhatLinksHere in CatWatch bundeled summary This link could probably also include &hidelinks=1&hideredirs=1 options at a later stage Bug: T119712 Change-Id: I578d550d25d92e20360bcaaf5392ef75a868a483 --- languages/i18n/en.json | 4 ++-- tests/phpunit/includes/deferred/LinksUpdateTest.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 5b32b978df..b27aee4c51 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1378,9 +1378,9 @@ "recentchangeslinked-page": "Page name:", "recentchangeslinked-to": "Show changes to pages linked to the given page instead", "recentchanges-page-added-to-category": "[[:$1]] added to category", - "recentchanges-page-added-to-category-bundled": "[[:$1]] and {{PLURAL:$2|one page|$2 pages}} added to category", + "recentchanges-page-added-to-category-bundled": "[[:$1]] and [[Special:WhatLinksHere/$1|{{PLURAL:$2|one page|$2 pages}}]] added to category", "recentchanges-page-removed-from-category": "[[:$1]] removed from category", - "recentchanges-page-removed-from-category-bundled": "[[:$1]] and {{PLURAL:$2|one page|$2 pages}} removed from category", + "recentchanges-page-removed-from-category-bundled": "[[:$1]] and [[Special:WhatLinksHere/$1|{{PLURAL:$2|one page|$2 pages}}]] removed from category", "autochange-username": "MediaWiki automatic change", "upload": "Upload file", "uploadbtn": "Upload file", diff --git a/tests/phpunit/includes/deferred/LinksUpdateTest.php b/tests/phpunit/includes/deferred/LinksUpdateTest.php index 9609f74a14..ac75e556a8 100644 --- a/tests/phpunit/includes/deferred/LinksUpdateTest.php +++ b/tests/phpunit/includes/deferred/LinksUpdateTest.php @@ -223,7 +223,11 @@ class LinksUpdateTest extends MediaWikiLangTestCase { $templateTitle, $templatePage->getParserOutput( new ParserOptions() ), Title::newFromText( 'Baz' ), - [ [ 'Baz', '[[:Template:TestingTemplate]] and 2 pages added to category' ] ] + [ [ + 'Baz', + '[[:Template:TestingTemplate]] and [[Special:WhatLinksHere/Template:TestingTemplate|2 pages]] ' + . 'added to category' + ] ] ); } -- 2.20.1