Use a <fieldset> for the date selector in history
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Aug 2008 19:40:37 +0000 (19:40 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Aug 2008 19:40:37 +0000 (19:40 +0000)
includes/PageHistory.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index f134851..f6f1ccd 100644 (file)
@@ -131,13 +131,14 @@ class PageHistory {
                $month = $wgRequest->getInt( 'month' );
                
                $action = htmlspecialchars( $wgScript );
-               $wgOut->addHTML( 
+               $wgOut->addHTML(
+                       Xml::fieldset( wfMsg( 'history-search' ) ) .
                        "<form action=\"$action\" method=\"get\"><div>" .
                        Xml::hidden( 'title', $this->mTitle->getPrefixedDBKey() ) . "\n" .
                        Xml::hidden( 'action', 'history' ) . "\n" .
                        $this->getDateMenu( $year, $month ) . '&nbsp;' . 
                        Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
-                       '</div><hr/></form>'
+                       '</div></form></fieldset>'
                );
 
                wfRunHooks( 'PageHistoryBeforeList', array( &$this->mArticle ) );
index 877d406..a08b394 100644 (file)
@@ -1219,6 +1219,7 @@ Please check the URL you used to access this page.',
 'histlegend'            => 'Diff selection: mark the radio boxes of the versions to compare and hit enter or the button at the bottom.<br />
 Legend: (cur) = difference with current version,
 (last) = difference with preceding version, M = minor edit.',
+'history-search'        => 'Search in history',
 'history_copyright'     => '-', # do not translate or duplicate this message to other languages
 'deletedrev'            => '[deleted]',
 'histfirst'             => 'Earliest',
index 89d73e6..e802a8d 100644 (file)
@@ -596,6 +596,7 @@ $wgMessageStructure = array(
                'page_first',
                'page_last',
                'histlegend',
+               'history-search',
                'history_copyright',
                'deletedrev',
                'histfirst',