Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/122430
Change subject: Follow-up I7d4bb9062. Register tracking category used. ...................................................................... Follow-up I7d4bb9062. Register tracking category used. This allows rss-tracking-category to appear in the newly added [[Special:TrackingCategories]]. Bug: 63286 Change-Id: I9d37c37f14b29dfb4377a13d4d799f93a7c7d22e --- M RSS.php M i18n/en.json M i18n/qqq.json 3 files changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RSS refs/changes/30/122430/1 diff --git a/RSS.php b/RSS.php index 720765c..dc01f91 100644 --- a/RSS.php +++ b/RSS.php @@ -42,6 +42,9 @@ $wgAutoloadClasses['RSSUtils'] = $dir . 'RSSParser.php'; $wgAutoloadClasses['RSSData'] = $dir . 'RSSData.php'; +// List tracking category on Special:TrackingCategories +$wgTrackingCategories[] = 'rss-tracking-category'; + $wgHooks['ParserFirstCallInit'][] = 'RSSHooks::parserInit'; // one hour diff --git a/i18n/en.json b/i18n/en.json index c2c1929..4b7ddf0 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -6,6 +6,7 @@ }, "rss-desc": "Displays RSS feeds on MediaWiki pages in a standard or in user-definable formats using template pages", "rss-tracking-category": "Pages with RSS feeds", + "rss-tracking-category-desc": "The page has an RSS feed.", "rss-error": "Failed to load RSS feed from $1: $2", "rss-empty": "Failed to load RSS feed from $1!", "rss-fetch-nourl": "Fetch called without a URL!", @@ -17,4 +18,4 @@ "rss-deprecated-wgrssallowedfeeds-found": "The deprecated variable $wgRSSAllowedFeeds has been detected. Since RSS version 2.0 this variable has to be replaced by $wgRSSUrlWhitelist as described in the manual page Extension:RSS.", "rss-item": "{{$1 | title = {{{title}}} | link = {{{link}}} | date = {{{date}}} | author = {{{author}}} | description = {{{description}}} }}", "rss-feed": "<!-- the following are two alternative templates. The first is the basic default template for feeds -->; '''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span>'''\n: {{{description}}}\n: {{{author}}} {{{date}}}<!-- don't use newline here --><!-- The second is an improved version which requires Extension:ParserFunctions --><!-- ; '''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span>'''{{#if: {{{description|}}}|: {{{description}}}}}{{#if: {{{author|}}} | {{#if: {{{date|}}} |: — {{{author}}} {{{date}}}}} | {{#if: {{{author|}}}|: — {{{author}}}}} {{#if: {{{date|}}}|:{{{date}}}}}|}} -->" -} \ No newline at end of file +} diff --git a/i18n/qqq.json b/i18n/qqq.json index db7eb26..7d308d0 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -10,6 +10,7 @@ }, "rss-desc": "{{desc|name=RSS|url=http://www.mediawiki.org/wiki/Extension:RSS}}", "rss-tracking-category": "The name of a category for all pages which use the <code><nowiki><rss></nowiki></code> parser extension tag. The category is automatically added unless the feature is disabled.", + "rss-tracking-category-desc": "Description on [[Special:TrackingCategories]] for the {{msg-mw|rss-tracking-category}} tracking category.", "rss-error": "Used as error message. Parameters:\n* $1 - URL of RSS feed\n* $2 - result which the RSS parser returned", "rss-empty": "Used as error message. Parameters:\n* $1 - URL of RSS feed", "rss-fetch-nourl": "Used as fatal error message when a URL has not been given.", @@ -21,4 +22,4 @@ "rss-deprecated-wgrssallowedfeeds-found": "{{doc-important|Do not translate <code>$wgRSSAllowedFeeds</code> and <code>$wgRSSUrlWhitelist</code>.}}", "rss-item": "{{notranslate}}\nParameters:\n* $1 - feed template pagename", "rss-feed": "; $1\n: ''not to be localised''\n: The RSS extension substitutes this placeholder with the name of a template page. The content of this template page determines the final layout of the RSS feed on the rendered wiki page. The Extension:RSS currently uses 'MediaWiki:Rss-feed' as default for $1. This means that the content of [[MediaWiki:Rss-feed]] determines how RSS feed items are rendered.\n: It allows users to let RSS feeds be rendered differently by using different (optional) 'template=<pagename>' parameters in the rss wiki tags.\n\n; title = {{{title}}} | link = {{{link}}} | ...\n: 'title' (left) is the variable name under which the content of an RSS feed field 'title' (right) is passed to the Template $1 where this is then used in the feed rendering.\n: This ''may'' be localised, but the content of the template $1 page (default [[MediaWiki:Rss-feed]] and potentially other RSS feed template pages on this wiki) needs then to be localised, too.\n: 'title' (right) is a name (property) of RSS feeds and is certainly not to be localised in any way.\n: ''I suggest not to localise anything.''" -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/122430 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9d37c37f14b29dfb4377a13d4d799f93a7c7d22e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RSS Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits