From c00fd14c0eb17252f6273b037f973434b5e58baf Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sun, 30 Mar 2014 22:04:08 -0300 Subject: [PATCH] Follow-up I7d4bb90: Message tweak + add code comment When I was saying it in my head, "No description available." sounded better to me than "Description not available", although perhaps that's just me. Add a code comment to Parser::addTrackingCategory telling people to register their tracking categories. Change-Id: I17bb0cf4b3118dda8647e0607588685c2b5cdb86 --- includes/parser/Parser.php | 4 ++++ languages/messages/MessagesEn.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index f2c4fbff7c..1548a9bf24 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4150,6 +4150,10 @@ class Parser { * Add a tracking category, getting the title from a system message, * or print a debug message if the title is invalid. * + * Please add any message that you use with this function to + * $wgTrackingCategories. That way they will be listed on + * Special:TrackingCategories. + * * @param string $msg message key * @return Boolean: whether the addition was successful */ diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 2c58966501..57beb93635 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2961,8 +2961,8 @@ There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] a 'expensive-parserfunction-category-desc' => 'Too many expensive parser functions (like #ifexists) included on a page. See [https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit Manual:$wgExpensiveParserFunctionLimit].', 'broken-file-category-desc' => 'Category added if the page contains a broken file link (a link to embed a file when the file does not exist).', 'hidden-category-category-desc' => 'This is a category with __HIDDENCAT__ on it, which prevents it from showing up in the category links box on pages, by default.', -'trackingcategories-nodesc' => 'Description not available', -'trackingcategories-disabled' => 'Category is disabled', +'trackingcategories-nodesc' => 'No description available.', +'trackingcategories-disabled' => 'Category is disabled', # Email user 'mailnologin' => 'No send address', -- 2.20.1