Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1991,6 +1991,8 @@ |
1992 | 1992 | 'newimages', |
1993 | 1993 | 'imagelisttext', |
1994 | 1994 | 'newimages-summary', |
| 1995 | + 'newimages-legend', |
| 1996 | + 'newimages-label', |
1995 | 1997 | 'showhidebots', |
1996 | 1998 | 'noimages', |
1997 | 1999 | 'ilsubmit', |
Index: trunk/phase3/includes/specials/SpecialNewimages.php |
— | — | @@ -147,24 +147,26 @@ |
148 | 148 | $lastTimestamp = $timestamp; |
149 | 149 | } |
150 | 150 | |
| 151 | + $titleObj = SpecialPage::getTitleFor( 'Newimages' ); |
| 152 | + $action = $titleObj->getLocalURL( $hidebots ? '' : 'hidebots=0' ); |
| 153 | + if ( $shownav && !$wgMiserMode ) { |
| 154 | + $wgOut->addHTML( |
| 155 | + Xml::openElement( 'form', array( 'action' => $action, 'id' => 'imagesearch' ) ) . |
| 156 | + Xml::fieldset( wfMsg( 'newimages-legend' ) ) . |
| 157 | + Xml::inputLabel( wfMsg( 'newimages-label' ), 'wpIlMatch', 'wpIlMatch', 20, $wpIlMatch ) . ' ' . |
| 158 | + Xml::submitButton( wfMsg( 'ilsubmit' ), array( 'name' => 'wpIlSubmit' ) ) . |
| 159 | + Xml::closeElement( 'fieldset' ) . |
| 160 | + Xml::closeElement( 'form' ) |
| 161 | + ); |
| 162 | + } |
| 163 | + |
151 | 164 | $bydate = wfMsg( 'bydate' ); |
152 | 165 | $lt = $wgLang->formatNum( min( $shownImages, $limit ) ); |
153 | | - if ($shownav) { |
154 | | - $text = wfMsgExt( 'imagelisttext', array('parse'), $lt, $bydate ); |
| 166 | + if ( $shownav && count( $images ) ) { |
| 167 | + $text = wfMsgExt( 'imagelisttext', array( 'parse' ), $lt, $bydate ); |
155 | 168 | $wgOut->addHTML( $text . "\n" ); |
156 | 169 | } |
157 | 170 | |
158 | | - $sub = wfMsg( 'ilsubmit' ); |
159 | | - $titleObj = SpecialPage::getTitleFor( 'Newimages' ); |
160 | | - $action = $titleObj->escapeLocalURL( $hidebots ? '' : 'hidebots=0' ); |
161 | | - if ($shownav && !$wgMiserMode) { |
162 | | - $wgOut->addHTML( "<form id=\"imagesearch\" method=\"post\" action=\"" . |
163 | | - "{$action}\">" . |
164 | | - Xml::input( 'wpIlMatch', 20, $wpIlMatch ) . ' ' . |
165 | | - Xml::submitButton( $sub, array( 'name' => 'wpIlSubmit' ) ) . |
166 | | - "</form>" ); |
167 | | - } |
168 | | - |
169 | 171 | /** |
170 | 172 | * Paging controls... |
171 | 173 | */ |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2823,6 +2823,8 @@ |
2824 | 2824 | 'newimages' => 'Gallery of new files', |
2825 | 2825 | 'imagelisttext' => "Below is a list of '''$1''' {{PLURAL:$1|file|files}} sorted $2.", |
2826 | 2826 | 'newimages-summary' => 'This special page shows the last uploaded files.', |
| 2827 | +'newimages-legend' => 'Filename', |
| 2828 | +'newimages-label' => 'Filename (or a part of it):', |
2827 | 2829 | 'showhidebots' => '($1 bots)', |
2828 | 2830 | 'noimages' => 'Nothing to see.', |
2829 | 2831 | 'ilsubmit' => 'Search', |
Index: trunk/phase3/languages/messages/MessagesDe.php |
— | — | @@ -2220,8 +2220,10 @@ |
2221 | 2221 | |
2222 | 2222 | # Special:Newimages |
2223 | 2223 | 'newimages' => 'Neue Dateien', |
2224 | | -'imagelisttext' => "Hier ist eine Liste von '''$1''' {{PLURAL:$1|Datei|Dateien}}, sortiert $2.", |
| 2224 | +'imagelisttext' => "Hier ist eine Liste mit '''$1''' {{PLURAL:$1|Datei|Dateien}}, sortiert $2.", |
2225 | 2225 | 'newimages-summary' => 'Diese Spezialseite zeigt die zuletzt hochgeladenen Dateien an.', |
| 2226 | +'newimages-legend' => 'Dateiname', |
| 2227 | +'newimages-label' => 'Dateiname (oder ein Teil davon):', |
2226 | 2228 | 'showhidebots' => '(Bots $1)', |
2227 | 2229 | 'noimages' => 'Keine Dateien gefunden.', |
2228 | 2230 | 'ilsubmit' => 'Suchen', |