Add new messages 'movepage-moved-redirect' and 'movepage-moved-noredirect' per http...
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 6 Jan 2009 22:10:29 +0000 (22:10 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 6 Jan 2009 22:10:29 +0000 (22:10 +0000)
includes/specials/SpecialMovepage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index ba7e808..acc2762 100644 (file)
@@ -349,7 +349,9 @@ class MovePageForm {
                $oldLink = "<span class='plainlinks'>[$oldUrl $oldText]</span>";
                $newLink = "<span class='plainlinks'>[$newUrl $newText]</span>";
 
+               $msgName = $createRedirect ? 'movepage-moved-redirect' : 'movepage-moved-noredirect';
                $wgOut->addWikiMsg( 'movepage-moved', $oldLink, $newLink, $oldText, $newText );
+               $wgOut->addWikiMsg( $msgName );
 
                # 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 f59e3e2..bbd6ce4 100644 (file)
@@ -2704,6 +2704,8 @@ In those cases, you will have to move or merge the page manually if desired.",
 '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-redirect'      => 'A redirect has been created.',
+'movepage-moved-noredirect'    => 'The creation of a redirect has been suppressed.',
 '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 ee5db8e..d747542 100644 (file)
@@ -1881,6 +1881,8 @@ $wgMessageStructure = array(
                'movepagebtn',
                'pagemovedsub',
                'movepage-moved',
+               'movepage-moved-redirect',
+               'movepage-moved-noredirect',
                'articleexists',
                'cantmove-titleprotected',
                'talkexists',