* Add a new message 'movepage-moved-noredirect' for page moves with suppressed redirects
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 1 Jan 2009 15:51:51 +0000 (15:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 1 Jan 2009 15:51:51 +0000 (15:51 +0000)
* Tweak 'movepage-moved' a bit (rename of message seems unnecessary)

includes/specials/SpecialMovepage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index ba7e808..69876ca 100644 (file)
@@ -168,8 +168,7 @@ class MovePageForm {
 
                $wgOut->addHTML(
                         Xml::openElement( 'form', array( 'method' => 'post', 'action' => $titleObj->getLocalURL( 'action=submit' ), 'id' => 'movepage' ) ) .
-                        Xml::openElement( 'fieldset' ) .
-                        Xml::element( 'legend', null, wfMsg( 'move-page-legend' ) ) .
+                        Xml::fieldset( wfMsg( 'move-page-legend' ) ) .
                         Xml::openElement( 'table', array( 'border' => '0', 'id' => 'mw-movepage-table' ) ) .
                         "<tr>
                                <td class='mw-label'>" .
@@ -349,7 +348,8 @@ class MovePageForm {
                $oldLink = "<span class='plainlinks'>[$oldUrl $oldText]</span>";
                $newLink = "<span class='plainlinks'>[$newUrl $newText]</span>";
 
-               $wgOut->addWikiMsg( 'movepage-moved', $oldLink, $newLink, $oldText, $newText );
+               $msgName = $createRedirect ? 'movepage-moved' : 'movepage-moved-noredirect';
+               $wgOut->addWikiMsg( $msgName, $oldLink, $newLink, $oldText, $newText );
 
                # Now we move extra pages we've been asked to move: subpages and talk
                # pages.  First, if the old page or the new page is a talk page, we
index c5d1b1d..1410cc3 100644 (file)
@@ -2699,7 +2699,12 @@ In those cases, you will have to move or merge the page manually if desired.",
 'move-watch'                   => 'Watch this page',
 'movepagebtn'                  => 'Move page',
 'pagemovedsub'                 => 'Move succeeded',
-'movepage-moved'               => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
+'movepage-moved'               => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>
+
+A redirect has been created.', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
+'movepage-moved-noredirect'    => '<big>\'\'\'"$1" has been moved to "$2"\'\'\'</big>
+
+The creation of a redirect has been suppressed.', # The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.
 'articleexists'                => 'A page of that name already exists, or the name you have chosen is not valid.
 Please choose another name.',
 'cantmove-titleprotected'      => 'You cannot move a page to this location, because the new title has been protected from creation',
index 90afbb6..658eef8 100644 (file)
@@ -1878,6 +1878,7 @@ $wgMessageStructure = array(
                'movepagebtn',
                'pagemovedsub',
                'movepage-moved',
+               'movepage-moved-noredirect',
                'articleexists',
                'cantmove-titleprotected',
                'talkexists',
@@ -3088,6 +3089,7 @@ $wgMessageComments = array(
        'exif-orientation-7'          => '0th row: right; 0th column: bottom',
        'exif-orientation-8'          => '0th row: left; 0th column: bottom',
        'movepage-moved'              => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.',
+       'movepage-moved-noredirect'   => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.',
        'ipboptions'                  => 'display1:time1,display2:time2,...',
        'protect-expiry-options'      => 'display1:time1,display2:time2,...',
        'metadata-fields'             => 'Do not translate list items',