From: Raimond Spekking Date: Tue, 6 Jan 2009 22:10:29 +0000 (+0000) Subject: Add new messages 'movepage-moved-redirect' and 'movepage-moved-noredirect' per http... X-Git-Tag: 1.31.0-rc.0~43546 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=42b42c74533f43bf81685250837195506552d8c1;p=lhc%2Fweb%2Fwiklou.git Add new messages 'movepage-moved-redirect' and 'movepage-moved-noredirect' per mediawiki.org/wiki/Special:Code/MediaWiki/45288#c1135 --- diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index ba7e808bb1..acc27625dc 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -349,7 +349,9 @@ class MovePageForm { $oldLink = "[$oldUrl $oldText]"; $newLink = "[$newUrl $newText]"; + $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 diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index f59e3e25c0..bbd6ce4a73 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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' => '\'\'\'"$1" has been moved to "$2"\'\'\'', # 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', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index ee5db8e556..d7475428be 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1881,6 +1881,8 @@ $wgMessageStructure = array( 'movepagebtn', 'pagemovedsub', 'movepage-moved', + 'movepage-moved-redirect', + 'movepage-moved-noredirect', 'articleexists', 'cantmove-titleprotected', 'talkexists',