Split confirm message from revdelete-text (bug 21264)
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Oct 2009 21:13:59 +0000 (21:13 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Oct 2009 21:13:59 +0000 (21:13 +0000)
includes/specials/SpecialRevisiondelete.php
languages/messages/MessagesEn.php

index 3dcb6db..3e8de86 100644 (file)
@@ -431,6 +431,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                if( $wgUser->isAllowed( 'suppressrevision' ) ) {
                        $wgOut->addWikiMsg( 'revdelete-suppress-text' );
                }
+               if( $this->mIsAllowed ) {
+                       $wgOut->addWikiMsg( 'revdelete-confirm' );
+               }
        }
        
        /**
index ac8220b..42a70ae 100644 (file)
@@ -1460,9 +1460,8 @@ function, the specified revision does not exist, or you are attempting to hide t
 'revdelete-selected'          => "'''{{PLURAL:$2|Selected revision|Selected revisions}} of [[:$1]]:'''",
 'logdelete-selected'          => "'''{{PLURAL:$1|Selected log event|Selected log events}}:'''",
 'revdelete-text'              => "'''Deleted revisions and events will still appear in the page history and logs, but parts of their content will be inaccessible to the public.'''
-Other administrators on {{SITENAME}} will still be able to access the hidden content and can undelete it again through this same interface, unless additional restrictions are set.
-
-Please confirm that you intend to do this, that you understand the consequences, and that you are doing this in accordance with [[{{MediaWiki:Policy-url}}|the policy]].",
+Other administrators on {{SITENAME}} will still be able to access the hidden content and can undelete it again through this same interface, unless additional restrictions are set.",
+'revdelete-confirm'           => "Please confirm that you intend to do this, that you understand the consequences, and that you are doing this in accordance with [[{{MediaWiki:Policy-url}}|the policy]].",
 'revdelete-suppress-text'     => "Suppression should '''only''' be used for the following cases:
 * Potentially libelous information
 * Inappropriate personal information