Index: trunk/phase3/includes/SpecialSearch.php |
— | — | @@ -592,7 +592,8 @@ |
593 | 593 | Xml::closeElement( 'span' ) . "\n"; |
594 | 594 | } |
595 | 595 | |
596 | | - $redirect = Xml::check( 'redirs', $this->searchRedirects, array( 'value' => '1' ) ); |
| 596 | + $redirect = Xml::check( 'redirs', $this->searchRedirects, array( 'value' => '1', 'id' => 'redirs' ) ); |
| 597 | + $redirectLabel = Xml::label( wfMsg( 'powersearchtext-redir' ), 'redirs' ); |
597 | 598 | $searchField = Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'powerSearchText' ) ); |
598 | 599 | $searchButton = Xml::submitButton( wfMsg( 'powersearch' ), array( 'name' => 'fulltext' ) ) . "\n"; |
599 | 600 | |
— | — | @@ -600,10 +601,11 @@ |
601 | 602 | Xml::openElement( 'fieldset' ) . |
602 | 603 | Xml::element( 'legend', array( ), wfMsg( 'powersearch-legend' ) ) . |
603 | 604 | Xml::hidden( 'title', 'Special:Search' ) . |
604 | | - wfMsgExt( 'powersearchtext', array( 'parse', 'replaceafter' ), |
605 | | - $namespaces, $redirect, $searchField, |
606 | | - '', '', '', '', '', # Dummy placeholders |
607 | | - $searchButton ) . |
| 605 | + wfMsgExt( 'powersearchtext-ns', array( 'parse', 'replaceafter' ), $namespaces) . |
| 606 | + Xml::openElement( 'p' ) . |
| 607 | + $redirect . " " . $redirectLabel . |
| 608 | + Xml::closeElement( 'p') . |
| 609 | + wfMsgExt( 'powersearchtext-field', array( 'parse', 'replaceafter' ), $searchField, $searchButton) . |
608 | 610 | Xml::closeElement( 'fieldset' ) . |
609 | 611 | Xml::closeElement( 'form' ); |
610 | 612 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1318,7 +1318,9 @@ |
1319 | 1319 | '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.", |
1320 | 1320 | 'powersearch' => 'Advanced search', |
1321 | 1321 | 'powersearch-legend' => 'Advanced search', |
1322 | | -'powersearchtext' => 'Search in namespaces:<br />$1<br />$2 List redirects<br />Search for $3 $9', |
| 1322 | +'powersearchtext-ns' => 'Search in namespaces:<br />$1<br />', |
| 1323 | +'powersearchtext-redir' => 'List redirects', |
| 1324 | +'powersearchtext-field' => 'Search for $1 $2', |
1323 | 1325 | 'search-external' => 'External search', |
1324 | 1326 | 'searchdisabled' => '{{SITENAME}} search is disabled. |
1325 | 1327 | You can search via Google in the meantime. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -270,6 +270,7 @@ |
271 | 271 | * Message name filter on Special:Allmessages now case-insensitive |
272 | 272 | * (bug 13943) Fix image redirect behaviour on image pages |
273 | 273 | * (bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation |
| 274 | +* (bug 14063) Power search form missing <label> for redirects check |
274 | 275 | |
275 | 276 | === API changes in 1.13 === |
276 | 277 | |