Reverting my reversions of the fieldset on Special:Watchlist. I liked it, and apparen...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Aug 2008 15:22:50 +0000 (15:22 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Aug 2008 15:22:50 +0000 (15:22 +0000)
includes/specials/SpecialWatchlist.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index d281cd6..5a04042 100644 (file)
@@ -269,7 +269,11 @@ function wfSpecialWatchlist( $par ) {
        $links[] = $skin->makeKnownLinkObj( $thisTitle, $label, $linkBits );
 
        # Namespace filter and put the whole form together.
-       $form  = $wlInfo;
+       $form  = Xml::openElement( 'fieldset', array( 'id' => 'mw-watchlist-options' ) );
+       $form .= Xml::openElement( 'legend', array( 'id' => 'mw-watchlist-legend' ) );
+       $form .= wfMsgExt( 'watchlist-options', array('escape') );
+       $form .= Xml::closeElement( 'legend' );
+       $form .= $wlInfo;
        $form .= $cutofflinks;
        $form .= implode( ' | ', $links );
        $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) );
@@ -290,6 +294,7 @@ function wfSpecialWatchlist( $par ) {
        if( $hideOwn )
                $form .= Xml::hidden( 'hideOwn', 1 );
        $form .= Xml::closeElement( 'form' );
+       $form .= Xml::closeElement( 'fieldset' );
        $wgOut->addHtml( $form );
 
        # If there's nothing to show, stop here
index 61676af..45d2af5 100644 (file)
@@ -2164,6 +2164,7 @@ Future changes to this page and its associated talk page will be listed there, a
 'watchlist-hide-anons' => 'Hide anonymous edits',
 'watchlist-show-liu'   => 'Show logged-in user edits',
 'watchlist-hide-liu'   => 'Hide logged-in user edits',
+'watchlist-options'    => 'Watchlist options',
 
 # Displayed when you click the "watch" button and it is in the process of watching
 'watching'   => 'Watching...',
index 50700a2..e4a97d1 100644 (file)
@@ -1437,6 +1437,7 @@ $wgMessageStructure = array(
                'watchlist-hide-anons',
                'watchlist-show-liu',
                'watchlist-hide-liu',
+               'watchlist-options',
        ),
        'watching' => array(
                'watching',