Add userrights-text message to display at all times on Special:Userrights, like makes...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 31 Dec 2007 23:54:52 +0000 (23:54 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 31 Dec 2007 23:54:52 +0000 (23:54 +0000)
RELEASE-NOTES
includes/SpecialUserrights.php
languages/messages/MessagesEn.php

index 501305a..776e79a 100644 (file)
@@ -112,6 +112,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when
   editing to allow CSS styling.
 * Parser now returns list of sections
+* Add userrights-text message to display at all times on Special:Userrights.
 
 === Bug fixes in 1.12 ===
 
index 0394b7d..f19fe1d 100644 (file)
@@ -232,6 +232,8 @@ class UserrightsForm extends HTMLForm {
         */
        function switchForm() {
                global $wgOut, $wgRequest;
+               $wgOut->addWikiText( wfMsg( 'userrights-text' ) );
+               
                $username = $wgRequest->getText( 'user-editname' );
                $form  = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->action, 'name' => 'uluser' ) );
                $form .= '<fieldset><legend>' . wfMsgHtml( 'userrights-lookup-user' ) . '</legend>';
index 861f080..1cafdd9 100644 (file)
@@ -1343,6 +1343,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left
 'userrights-nodatabase'       => 'Database $1 does not exist or is not local.',
 'userrights-nologin'          => 'You must [[Special:Userlogin|log in]] with an administrator account to assign user rights.',
 'userrights-notallowed'       => 'Your account does not have permission to assign user rights.',
+'userrights-text'             => '', # don't translate or duplicate this message to other languages
 
 # Groups
 'group'               => 'Group:',