);
}
- $wgOut->addHTML( "\n" . wlCutoffLinks( $days, 'Watchlist', $nondefaults ) . "<br />\n" );
+ $cutofflinks = "\n" . wlCutoffLinks( $days, 'Watchlist', $nondefaults ) . "<br />\n";
# Spit out some control panel links
$thisTitle = SpecialPage::getTitleFor( 'Watchlist' );
$linkBits = wfArrayToCGI( array( 'hideOwn' => 1 - (int)$hideOwn ), $nondefaults );
$links[] = $skin->makeKnownLinkObj( $thisTitle, $label, $linkBits );
- $wgOut->addHTML( implode( ' | ', $links ) );
-
- # Form for namespace filtering
- $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) );
+ # Namespace filter and put the whole form together.
+ $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 .= $cutofflinks;
+ $form .= implode( ' | ', $links );
+ $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) );
$form .= '<p>';
$form .= Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ';
$form .= Xml::namespaceSelector( $nameSpace, '' ) . ' ';
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
'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...',