}
$redirect = Xml::check( 'redirs', $this->searchRedirects, array( 'value' => '1', 'id' => 'redirs' ) );
- $redirectLabel = Xml::label( wfMsg( 'powersearchtext-redir' ), 'redirs' );
+ $redirectLabel = Xml::label( wfMsg( 'powersearch-redir' ), 'redirs' );
$searchField = Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'powerSearchText' ) );
$searchButton = Xml::submitButton( wfMsg( 'powersearch' ), array( 'name' => 'fulltext' ) ) . "\n";
$out = Xml::openElement( 'form', array( 'id' => 'powersearch', 'method' => 'get', 'action' => $wgScript ) ) .
- Xml::openElement( 'fieldset' ) .
- Xml::element( 'legend', array( ), wfMsg( 'powersearch-legend' ) ) .
- Xml::hidden( 'title', 'Special:Search' ) .
- wfMsgExt( 'powersearchtext-ns', array( 'parse', 'replaceafter' ), $namespaces) .
- Xml::openElement( 'p' ) .
- $redirect . " " . $redirectLabel .
- Xml::closeElement( 'p') .
- wfMsgExt( 'powersearchtext-field', array( 'parse', 'replaceafter' ), $searchField, $searchButton) .
- Xml::closeElement( 'fieldset' ) .
- Xml::closeElement( 'form' );
+ Xml::fieldset( wfMsg( 'powersearch-legend' ),
+ Xml::hidden( 'title', 'Special:Search' ) .
+ "<p>" .
+ wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ) .
+ "<br />" .
+ $namespaces .
+ "</p>" .
+ "<p>" .
+ $redirect . " " . $redirectLabel .
+ "</p>" .
+ wfMsgExt( 'powersearch-field', array( 'parseinline' ) ) .
+ " " .
+ $searchField .
+ " " .
+ $searchButton ) .
+ "</form>";
return $out;
}
'nonefound' => "'''Note''': Only some namespaces are searched by default. Try prefixing your query with ''all:'' to search all content (including talk pages, templates, etc), or use the desired namespace as prefix.",
'powersearch' => 'Advanced search',
'powersearch-legend' => 'Advanced search',
-'powersearchtext-ns' => 'Search in namespaces:<br />$1<br />',
-'powersearchtext-redir' => 'List redirects',
-'powersearchtext-field' => 'Search for $1 $2',
+'powersearch-ns' => 'Search in namespaces:',
+'powersearch-redir' => 'List redirects',
+'powersearch-field' => 'Search for',
'search-external' => 'External search',
'searchdisabled' => '{{SITENAME}} search is disabled.
You can search via Google in the meantime.