Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1986,6 +1986,8 @@ |
1987 | 1987 | 'newimages', |
1988 | 1988 | 'imagelisttext', |
1989 | 1989 | 'newimages-summary', |
| 1990 | + 'newimages-legend', |
| 1991 | + 'newimages-label', |
1990 | 1992 | 'showhidebots', |
1991 | 1993 | 'noimages', |
1992 | 1994 | 'ilsubmit', |
Index: trunk/phase3/includes/specials/SpecialNewimages.php |
— | — | @@ -136,6 +136,19 @@ |
137 | 137 | $lastTimestamp = $timestamp; |
138 | 138 | } |
139 | 139 | |
| 140 | + $titleObj = SpecialPage::getTitleFor( 'Newimages' ); |
| 141 | + $action = $titleObj->getLocalURL( $hidebots ? '' : 'hidebots=0' ); |
| 142 | + if ( $shownav && !$wgMiserMode ) { |
| 143 | + $wgOut->addHTML( |
| 144 | + Xml::openElement( 'form', array( 'action' => $action, 'method' => 'post', 'id' => 'imagesearch' ) ) . |
| 145 | + Xml::fieldset( wfMsg( 'newimages-legend' ) ) . |
| 146 | + Xml::inputLabel( wfMsg( 'newimages-label' ), 'wpIlMatch', 'wpIlMatch', 20, $wpIlMatch ) . ' ' . |
| 147 | + Xml::submitButton( wfMsg( 'ilsubmit' ), array( 'name' => 'wpIlSubmit' ) ) . |
| 148 | + Xml::closeElement( 'fieldset' ) . |
| 149 | + Xml::closeElement( 'form' ) |
| 150 | + ); |
| 151 | + } |
| 152 | + |
140 | 153 | $bydate = wfMsg( 'bydate' ); |
141 | 154 | $lt = $wgLang->formatNum( min( $shownImages, $limit ) ); |
142 | 155 | if ( $shownav ) { |
— | — | @@ -143,17 +156,6 @@ |
144 | 157 | $wgOut->addHTML( $text . "\n" ); |
145 | 158 | } |
146 | 159 | |
147 | | - $sub = wfMsg( 'ilsubmit' ); |
148 | | - $titleObj = SpecialPage::getTitleFor( 'Newimages' ); |
149 | | - $action = $titleObj->escapeLocalURL( $hidebots ? '' : 'hidebots=0' ); |
150 | | - if ($shownav && !$wgMiserMode) { |
151 | | - $wgOut->addHTML( "<form id=\"imagesearch\" method=\"post\" action=\"" . |
152 | | - "{$action}\">" . |
153 | | - Xml::input( 'wpIlMatch', 20, $wpIlMatch ) . ' ' . |
154 | | - Xml::submitButton( $sub, array( 'name' => 'wpIlSubmit' ) ) . |
155 | | - "</form>" ); |
156 | | - } |
157 | | - |
158 | 160 | /** |
159 | 161 | * Paging controls... |
160 | 162 | */ |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2819,6 +2819,8 @@ |
2820 | 2820 | 'newimages' => 'Gallery of new files', |
2821 | 2821 | 'imagelisttext' => "Below is a list of '''$1''' {{PLURAL:$1|file|files}} sorted $2.", |
2822 | 2822 | 'newimages-summary' => 'This special page shows the last uploaded files.', |
| 2823 | +'newimages-legend' => 'Filter', |
| 2824 | +'newimages-label' => 'Filename (or a part of it):', |
2823 | 2825 | 'showhidebots' => '($1 bots)', |
2824 | 2826 | 'noimages' => 'Nothing to see.', |
2825 | 2827 | 'ilsubmit' => 'Search', |