* (bug 25946) The message on the top of Special:RecentChanges is now displayed in...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 Apr 2011 08:34:01 +0000 (08:34 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 Apr 2011 08:34:01 +0000 (08:34 +0000)
Moved 'recentchangestext' message to 'recentchanges-summary'; left 'recentchangestext' empty by default for wikis that would like to display things in content language on the top of Special:RecentChanges

RELEASE-NOTES
includes/specials/SpecialRecentchanges.php
languages/messages/MessagesEn.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index ede4f3e..36746f4 100644 (file)
@@ -238,6 +238,8 @@ PHP if you have not done so prior to upgrading MediaWiki.
 * UtfNormal::cleanUp on an invalid utf-8 sequence no longer returns false if intl installed.
 * (bug 28561) The css class small will no longer make nested elements even smaller.
 * (bug 13172) Array type exif data (like GPS) was not being extracted from images.
+* (bug 25946) The message on the top of Special:RecentChanges is now displayed
+  in user language instead of content language
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result
index 936a053..4c1b4c2 100644 (file)
@@ -547,7 +547,10 @@ class SpecialRecentChanges extends IncludableSpecialPage {
         * @param $opts FormOptions
         */
        function setTopText( OutputPage $out, FormOptions $opts ){
-               $out->addWikiText( wfMsgForContentNoTrans( 'recentchangestext' ) );
+               $message = wfMessage( 'recentchangestext' )->inContentLanguage();
+               if ( $message->exists() ) {
+                       $out->addWikiText( $message->plain() );
+               }
        }
 
        /**
index 4007446..891d99d 100644 (file)
@@ -1986,7 +1986,8 @@ If you choose to provide it, this will be used for giving you attribution for yo
 'recentchanges'                     => 'Recent changes',
 'recentchanges-url'                 => 'Special:RecentChanges', # do not translate or duplicate this message to other languages
 'recentchanges-legend'              => 'Recent changes options',
-'recentchangestext'                 => 'Track the most recent changes to the wiki on this page.',
+'recentchanges-summary'             => 'Track the most recent changes to the wiki on this page.',
+'recentchangestext'                 => '-', # do not translate or duplicate this message to other languages
 'recentchanges-feed-description'    => 'Track the most recent changes to the wiki in this feed.',
 'recentchanges-label-newpage'       => 'This edit created a new page',
 'recentchanges-label-minor'         => 'This is a minor edit',
index 9f6aba6..9972054 100644 (file)
@@ -119,6 +119,7 @@ $wgIgnoredMessages = array(
        'pubmedurl',
        'randompage-url',
        'recentchanges-url',
+       'recentchangestext',
        'revision-info-current',
        'revision-nav',
        'rfcurl',
index b963abc..caa0476 100644 (file)
@@ -1168,6 +1168,7 @@ $wgMessageStructure = array(
                'recentchanges',
                'recentchanges-url',
                'recentchanges-legend',
+               'recentchanges-summary',
                'recentchangestext',
                'recentchanges-feed-description',
                'recentchanges-label-newpage',