From: addshore Date: Fri, 26 Feb 2016 10:28:16 +0000 (+0000) Subject: Link to Special:WhatLinksHere in CatWatch bundeled summary X-Git-Tag: 1.31.0-rc.0~7579^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=a50a18cd23f481213768b4aafbda6251cee5cbea;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' + ] ] ); }