More preferences simplification
authorTom Gilder <tomgilder@users.mediawiki.org>
Tue, 11 Oct 2005 02:52:38 +0000 (02:52 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Tue, 11 Oct 2005 02:52:38 +0000 (02:52 +0000)
includes/SpecialPreferences.php
languages/Language.php
skins/monobook/main.css

index e20da14..9911815 100644 (file)
@@ -379,7 +379,7 @@ class PreferencesForm {
                        if ( empty($name) )
                                $name = wfMsg( 'blanknamespace' );
 
-                       $r1 .= "<label><input type='checkbox' value='1' name='wpNs$i' {$checked}/>{$name}</label>\n";
+                       $r1 .= "<label><input type='checkbox' value='1' name='wpNs$i' {$checked}/> {$name}</label><br />\n";
                }
                return $r1;
        }
@@ -695,23 +695,25 @@ class PreferencesForm {
 
                 # Date format
                 #
+               # Date/Time
+               #
+
+               $wgOut->addHTML( "<fieldset>\n<legend>" . wfMsg( 'datetime' ) . "</legend>\n" );
+
                if ($dateopts) {
-                       $wgOut->addHTML( "<fieldset>\n<legend>" . wfMsg('dateformat') . "</legend>\n" );
+                       $wgOut->addHTML( "<fieldset>\n<legend>" . wfMsg( 'dateformat' ) . "</legend>\n" );
                        foreach($dateopts as $key => $option) {
                                ($key == $this->mDate) ? $checked = ' checked="checked"' : $checked = '';
                                $wgOut->addHTML( "<div><label><input type='radio' name=\"wpDate\" ".
                                        "value=\"$key\"$checked /> $option</label></div>\n" );
                        }
-                       $wgOut->addHTML( "</fieldset>\n\n");
+                       $wgOut->addHTML( "</fieldset>\n);
                }
 
-               # Time zone
-               #
-
                $nowlocal = $wgLang->time( $now = wfTimestampNow(), true );
                $nowserver = $wgLang->time( $now, false );
 
-               $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'timezonelegend' ) . '</legend><table>' .
+               $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'timezonelegend' ). '</legend><table>' .
                        $this->addRow( wfMsg( 'servertime' ), $nowserver ) .
                        $this->addRow( wfMsg( 'localtime' ), $nowlocal ) .
                        $this->addRow(
@@ -720,7 +722,7 @@ class PreferencesForm {
                        ) . "<tr><td colspan='2'>
                                <input type='button' value=\"" . wfMsg( 'guesstimezone' ) ."\"
                                onclick='javascript:guessTimezone()' id='guesstimezonebutton' style='display:none;' />
-                               </td></tr></table>
+                               </td></tr></table></fieldset>
                        <div class='prefsectiontip'>ยน" .  wfMsg( 'timezonetext' ) . "</div>
                </fieldset>\n\n" );
 
index 0c3df79..5e84f77 100644 (file)
@@ -857,6 +857,7 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'skin'                 => 'Skin',
 'math'                 => 'Math',
 'dateformat'           => 'Date format',
+'datetime'             => 'Date/time',
 'math_failure'         => 'Failed to parse',
 'math_unknown_error'   => 'unknown error',
 'math_unknown_function'        => 'unknown function ',
@@ -866,7 +867,7 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'math_bad_tmpdir'      => 'Can\'t write to or create math temp directory',
 'math_bad_output'      => 'Can\'t write to or create math output directory',
 'math_notexvc' => 'Missing texvc executable; please see math/README to configure.',
-'prefs-personal' => 'User data',
+'prefs-personal' => 'User profile',
 'prefs-rc' => 'Recent changes',
 'prefs-misc' => 'Misc',
 'saveprefs'            => 'Save Preferences',
index 5f2d1d1..d01c96c 100644 (file)
@@ -956,6 +956,7 @@ head:first-child+body #footer li { white-space: nowrap; }
 }
 #prefcontrol {
     padding-top: 2em;
+    clear: left;
 }
 #preferences {
     margin: 0;