r106944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106943‎ | r106944 | r106945 >
Date:14:57, 21 December 2011
Author:maxsem
Status:ok
Tags:
Comment:
Added 2 new feeds: Did you know? and Quote of the day; message documentation
Modified paths:
  • /trunk/extensions/FeaturedFeeds/FeaturedFeeds.i18n.php (modified) (history)
  • /trunk/extensions/FeaturedFeeds/FeaturedFeedsWMF.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FeaturedFeeds/FeaturedFeedsWMF.php
@@ -41,12 +41,26 @@
4242 'description' => 'ffeed-onthisday-desc',
4343 'entryName' => 'ffeed-onthisday-entry',
4444 ),
 45+ 'dyk' => array( // Did you know?
 46+ 'page' => 'ffeed-dyk-page',
 47+ 'title' => 'ffeed-dyk-title',
 48+ 'description' => 'ffeed-dyk-desc',
 49+ 'entryName' => 'ffeed-dyk-entry',
 50+ ),
4551 );
4652 $feeds += $media;
4753 break;
4854 case 'commons':
4955 $feeds += $media;
5056 break;
 57+ case 'wikiquote':
 58+ $feeds['qotd'] = array( // Quote of the Day
 59+ 'page' => 'ffeed-qotd-page',
 60+ 'title' => 'ffeed-qotd-title',
 61+ 'description' => 'ffeed-qotd-desc',
 62+ 'entryName' => 'ffeed-qotd-entry',
 63+ );
 64+ break;
5165 }
5266 return true;
5367 }
Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.i18n.php
@@ -26,6 +26,12 @@
2727 'ffeed-onthisday-desc' => 'Historical events on this day',
2828 'ffeed-onthisday-entry' => 'On this day: {{LOCALMONTHNAME}} {{LOCALDAY}}',
2929
 30+ # Did You Know?
 31+ 'ffeed-dyk-page' => '', # do not localise
 32+ 'ffeed-dyk-title' => '{{SITENAME}} "Did You Know?" feed',
 33+ 'ffeed-dyk-desc' => 'From {{SITENAME}}\'s newest content',
 34+ 'ffeed-dyk-entry' => 'Did you know?: {{LOCALMONTHNAME}} {{LOCALDAY}}',
 35+
3036 // Media Of The Day
3137 'ffeed-motd-page' => '', # do not localise
3238 'ffeed-motd-title' => '{{SITENAME}} media of the day feed',
@@ -37,4 +43,49 @@
3844 'ffeed-potd-title' => '{{SITENAME}} Picture of the day feed',
3945 'ffeed-potd-desc' => 'Some of the finest images on {{SITENAME}}',
4046 'ffeed-potd-entry' => '{{SITENAME}} Picture of the day for {{LOCALMONTHNAME}} {{LOCALDAY}}',
 47+
 48+ # Quote of the Day
 49+ 'ffeed-motd-page' => '', # do not localise
 50+ 'ffeed-motd-title' => '{{SITENAME}} quote of the day feed',
 51+ 'ffeed-motd-desc' => 'Some of the finest quotes on {{SITENAME}}',
 52+ 'ffeed-motd-entry' => '{{SITENAME}} quote of the day for {{LOCALMONTHNAME}} {{LOCALDAY}}',
4153 );
 54+
 55+/**
 56+ * Message documentation
 57+ * @author Max Semenik
 58+ */
 59+
 60+$messages['qqq'] = array(
 61+ 'ffeed-desc' => '{{desc}}',
 62+
 63+ # Featured Article
 64+ 'ffeed-fa-title' => 'Title of the Featured Articles [[w:web feed|syndication feed]]',
 65+ 'ffeed-fa-desc' => 'Description of the Featured Articles [[w:web feed|syndication feed]]',
 66+ 'ffeed-fa-entry' => 'Title of day\'s entry in the Featured Articles [[w:web feed|syndication feed]]',
 67+
 68+ # On this day...
 69+ 'ffeed-onthisday-title' => 'Title of the "On this day..." [[w:web feed|syndication feed]]',
 70+ 'ffeed-onthisday-desc' => 'Description of the "On this day..." [[w:web feed|syndication feed]]',
 71+ 'ffeed-onthisday-entry' => 'Title of day\'s entry in the "On this day..." [[w:web feed|syndication feeds]',
 72+
 73+ # Did You Know?
 74+ 'ffeed-dyk-title' => 'Title of the "Did you know?" [[w:web feed|syndication feed]]',
 75+ 'ffeed-dyk-desc' => 'Description of the "Did you know?" [[w:web feed|syndication feed]]',
 76+ 'ffeed-dyk-entry' => 'Title of day\'s entry in the "Did you know?" [[w:web feed|syndication feeds]',
 77+
 78+ // Media Of The Day
 79+ 'ffeed-motd-title' => 'Title of the Media of the Day [[w:web feed|syndication feed]]',
 80+ 'ffeed-motd-desc' => 'Description of the Media of the Day [[w:web feed|syndication feed]]',
 81+ 'ffeed-motd-entry' => 'Title of day\'s entry in the Media of the Day [[w:web feed|syndication feed]]',
 82+
 83+ # Picture Of The Day
 84+ 'ffeed-potd-title' => 'Title of the Picture Of The Day [[w:web feed|syndication feed]]',
 85+ 'ffeed-potd-desc' => 'Description of the Picture Of The Day [[w:web feed|syndication feed]]',
 86+ 'ffeed-potd-entry' => 'Title of day\'s entry in the Media of the Day [[w:web feed|syndication feed]]',
 87+
 88+ # Quote Of The Day
 89+ 'ffeed-qotd-title' => 'Title of the Quote Of The Day [[w:web feed|syndication feed]]',
 90+ 'ffeed-qotd-desc' => 'Description of the Quote Of The Day [[w:web feed|syndication feed]]',
 91+ 'ffeed-qotd-entry' => 'Title of day\'s entry in the Quote of the Day [[w:web feed|syndication feed]]',
 92+);

Sign-offs

UserFlagDate
Santhosh.thottingalinspected15:11, 21 December 2011

Follow-up revisions

RevisionCommit summaryAuthorDate
r106951r106944: Consistency tweaks in preparation for adding extension to translatew...raymond16:00, 21 December 2011
r106952r106944: Adding extension to translatewiki.netraymond16:00, 21 December 2011

Status & tagging log