From 8af59afa0dde6ece982421facf49adc4d598a1a6 Mon Sep 17 00:00:00 2001 From: Glaisher Date: Sun, 22 May 2016 22:15:34 +0500 Subject: [PATCH] Add pages with ignored restricted {{DISPLAYTITLE}}s to a tracking category Added to "Pages with ignored display titles" category (message key: "restricted-displaytitle-ignored") Follow up to I6ae6d5d0e567ba9c86e46c32240ee51a2ca5d8d1 Bug: T135949 Change-Id: I9e0f8b1e3d39a62c13191bea6734fb136e976e0c --- includes/parser/CoreParserFunctions.php | 1 + includes/specials/SpecialTrackingCategories.php | 1 + languages/i18n/en.json | 2 ++ languages/i18n/qqq.json | 2 ++ 4 files changed, 6 insertions(+) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 3b8b513dfd..d8bd42edc5 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -460,6 +460,7 @@ class CoreParserFunctions { return ''; } } else { + $parser->addTrackingCategory( 'restricted-displaytitle-ignored' ); $converter = $parser->getConverterLanguage()->getConverter(); return '' . wfMessage( 'restricted-displaytitle', diff --git a/includes/specials/SpecialTrackingCategories.php b/includes/specials/SpecialTrackingCategories.php index b13f27b560..f2eb88d154 100644 --- a/includes/specials/SpecialTrackingCategories.php +++ b/includes/specials/SpecialTrackingCategories.php @@ -52,6 +52,7 @@ class SpecialTrackingCategories extends SpecialPage { 'broken-file-category', 'node-count-exceeded-category', 'expansion-depth-exceeded-category', + 'restricted-displaytitle-ignored', ]; function execute( $par ) { diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 3000a54848..37ad2636da 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2004,6 +2004,8 @@ "trackingcategories-msg": "Tracking category", "trackingcategories-name": "Message name", "trackingcategories-desc": "Category inclusion criteria", + "restricted-displaytitle-ignored": "Pages with ignored display titles", + "restricted-displaytitle-ignored-desc": "The page has an ignored {{DISPLAYTITLE}} because it is not equivalent to the page's actual title.", "noindex-category-desc": "The page is not indexed by robots because it has the magic word __NOINDEX__ on it and is in a namespace where that flag is allowed.", "index-category-desc": "The page has a __INDEX__ on it (and is in a namespace where that flag is allowed), and hence is indexed by robots where it normally wouldn't be.", "post-expand-template-inclusion-category-desc": "The page size is bigger than $wgMaxArticleSize after expanding all the templates, so some templates were not expanded.", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index c4278ec810..5e076442b4 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -2184,6 +2184,8 @@ "trackingcategories-msg": "Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the mediawiki message that controls the tracking category in question.\n{{Identical|Tracking category}}", "trackingcategories-name": "Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the name of the tracking category in the content language.", "trackingcategories-desc": "Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the inclusion criteria for the category.", + "restricted-displaytitle-ignored": "This message is used as a category name for a [[mw:Special:MyLanguage/Help:Tracking categories|tracking category]] where pages are placed automatically if a page has an ignored display title.\n\nSee also:\n* {{msg-mw|restricted-displaytitle-ignored-desc}}\n*{{msg-mw|restricted-displaytitle}}", + "restricted-displaytitle-ignored-desc": "Pages with ignored display titles category description. Shown on [[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|restricted-displaytitle-ignored}}", "noindex-category-desc": "No-index category-description. Shown on [[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|Noindex-category}}", "index-category-desc": "Index category-description. Shown on [[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|Index-category}}", "post-expand-template-inclusion-category-desc": "Post expand template inclusion category description. Shown on [[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|Post-expand-template-inclusion-category}}", -- 2.20.1