Add a descriptive message for rows/cols of Special:Preferences#Editing
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 15 Dec 2008 22:26:50 +0000 (22:26 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 15 Dec 2008 22:26:50 +0000 (22:26 +0000)
includes/specials/SpecialPreferences.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index ae8d8b4..4859d00 100644 (file)
@@ -934,12 +934,11 @@ class PreferencesForm {
                # Editing
                #
                global $wgLivePreview;
-               $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
-                       <div>' .
-                               Xml::inputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) .
-                               ' ' .
-                               Xml::inputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
-                       "</div>" .
+               $wgOut->addHTML(
+                       Xml::fieldset( wfMsg( 'textboxsize' ) ) .
+                       wfMsgHTML( 'prefs-edit-boxsize' ) . ' ' .
+                       Xml::inputLabel( wfMsg( 'rows' ), 'wpRows', 'wpRows', 3, $this->mRows ) . ' ' .
+                       Xml::inputLabel( wfMsg( 'columns' ), 'wpCols', 'wpCols', 3, $this->mCols ) .
                        $this->getToggles( array(
                                'editsection',
                                'editsectiononrightclick',
@@ -953,9 +952,10 @@ class PreferencesForm {
                                'externaldiff',
                                $wgLivePreview ? 'uselivepreview' : false,
                                'forceeditsummary',
-                       ) ) );
-               
-               $wgOut->addHTML( '</fieldset>' );
+                       ) )
+               );
+
+               $wgOut->addHTML( Xml::closeElement( 'fieldset' ) );
 
                # Recent changes
                global $wgRCMaxAge;
index 405db6a..bfda7d1 100644 (file)
@@ -1551,6 +1551,7 @@ please see math/README to configure.',
 'saveprefs'                 => 'Save',
 'resetprefs'                => 'Clear unsaved changes',
 'textboxsize'               => 'Editing',
+'prefs-edit-boxsize'        => 'Size of the edit window.',
 'rows'                      => 'Rows:',
 'columns'                   => 'Columns:',
 'searchresultshead'         => 'Search',
index 9cec2e6..a55041b 100644 (file)
@@ -872,6 +872,7 @@ $wgMessageStructure = array(
                'saveprefs',
                'resetprefs',
                'textboxsize',
+               'prefs-edit-boxsize',
                'rows',
                'columns',
                'searchresultshead',