mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-24 07:43:56 +00:00
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
This commit is contained in:
parent
9a224d07c9
commit
aec87de507
3
RSS.php
3
RSS.php
|
@ -42,6 +42,9 @@ $wgAutoloadClasses['RSSParser'] = $dir . 'RSSParser.php';
|
|||
$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
|
||||
|
|
|
@ -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}}}}}|}} -->"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.''"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue