Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1290,6 +1290,7 @@ |
1291 | 1291 | 'uctop', |
1292 | 1292 | 'month', |
1293 | 1293 | 'year', |
| 1294 | + 'year_month', |
1294 | 1295 | ), |
1295 | 1296 | 'sp-contributions' => array( |
1296 | 1297 | 'sp-contributions-newest', |
— | — | @@ -2396,7 +2397,8 @@ |
2397 | 2398 | 'exif-orientation-6' => '0th row: right; 0th column: top', |
2398 | 2399 | 'exif-orientation-7' => '0th row: right; 0th column: bottom', |
2399 | 2400 | 'exif-orientation-8' => '0th row: left; 0th column: bottom', |
2400 | | - 'movepage-moved' => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.' |
| 2401 | + 'movepage-moved' => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.', |
| 2402 | + 'year-month' => '$1 year, $2 month', |
2401 | 2403 | ); |
2402 | 2404 | |
2403 | 2405 | /** Messages which contain dollar signs (which are not followed by numbers), and therefore should use a single apostrophe */ |
Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -205,6 +205,7 @@ |
206 | 206 | 'filedelete-backlink', |
207 | 207 | 'pagetitle', |
208 | 208 | 'filename-prefix-blacklist', |
| 209 | + 'year-month', |
209 | 210 | ); |
210 | 211 | |
211 | 212 | /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */ |
Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -420,8 +420,16 @@ |
421 | 421 | } |
422 | 422 | $f .= "\t" . Xml::hidden( $name, $value ) . "\n"; |
423 | 423 | } |
| 424 | + $inputMonth= '<span style="white-space: nowrap">' . |
| 425 | + Xml::label( wfMsg( 'month' ), 'month' ) . ' '. |
| 426 | + Xml::monthSelector( $options['month'], -1 ) . ' '. |
| 427 | + '</span>'; |
| 428 | + $inputYear = '<span style="white-space: nowrap">' . |
| 429 | + Xml::label( wfMsg( 'year' ), 'year' ) . ' '. |
| 430 | + Xml::input( 'year', 4, $options['year'], array('id' => 'year', 'maxlength' => 4 ) ) . |
| 431 | + '</span>'; |
424 | 432 | |
425 | | - $f .= '<fieldset>' . |
| 433 | + $f .= Xml::openElement( 'fieldset' ) . |
426 | 434 | Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) . |
427 | 435 | Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parseinline' ) ), 'contribs' , 'newbie' , 'newbie', $options['contribs'] == 'newbie' ? true : false ) . '<br />' . |
428 | 436 | Xml::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parseinline' ) ), 'contribs' , 'user', 'user', $options['contribs'] == 'user' ? true : false ) . ' ' . |
— | — | @@ -431,23 +439,15 @@ |
432 | 440 | Xml::namespaceSelector( $options['namespace'], '' ) . |
433 | 441 | '</span>' . |
434 | 442 | Xml::openElement( 'p' ) . |
435 | | - '<span style="white-space: nowrap">' . |
436 | | - Xml::label( wfMsg( 'year' ), 'year' ) . ' '. |
437 | | - Xml::input( 'year', 4, $options['year'], array('id' => 'year', 'maxlength' => 4) ) . |
438 | | - '</span>' . |
439 | | - ' '. |
440 | | - '<span style="white-space: nowrap">' . |
441 | | - Xml::label( wfMsg( 'month' ), 'month' ) . ' '. |
442 | | - Xml::monthSelector( $options['month'], -1 ) . ' '. |
443 | | - '</span>' . |
| 443 | + wfMsg( 'year-month', $inputYear, $inputMonth ) . ' ' . |
444 | 444 | Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) . |
445 | 445 | Xml::closeElement( 'p' ); |
446 | | - |
| 446 | + |
447 | 447 | $explain = wfMsgExt( 'sp-contributions-explain', 'parseinline' ); |
448 | 448 | if( !wfEmptyMsg( 'sp-contributions-explain', $explain ) ) |
449 | 449 | $f .= "<p>{$explain}</p>"; |
450 | | - |
451 | | - $f .= '</fieldset>' . |
| 450 | + |
| 451 | + $f .= Xml::closeElement( 'fieldset' ) . |
452 | 452 | Xml::closeElement( 'form' ); |
453 | 453 | return $f; |
454 | 454 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1971,6 +1971,7 @@ |
1972 | 1972 | 'uctop' => ' (top)', |
1973 | 1973 | 'month' => 'From month (and earlier):', |
1974 | 1974 | 'year' => 'From year (and earlier):', |
| 1975 | +'year-month' => '$1 $2', # $1 year, $2 month; only translate this message to other languages if you have to change it |
1975 | 1976 | |
1976 | 1977 | 'sp-contributions-newest' => 'Newest', |
1977 | 1978 | 'sp-contributions-oldest' => 'Oldest', |
Index: trunk/phase3/languages/messages/MessagesDe.php |
— | — | @@ -1569,9 +1569,10 @@ |
1570 | 1570 | 'nocontribs' => 'Es wurden keine Benutzerbeiträge mit diesen Kriterien gefunden.', |
1571 | 1571 | 'ucnote' => 'Dies sind die letzten <b>$1</b> Beiträge des Benutzers in den letzten <b>$2</b> Tagen.', |
1572 | 1572 | 'uclinks' => 'Zeige die letzten $1 Beiträge; zeige die letzten $2 Tage.', |
1573 | | -'uctop' => ' (aktuell)', |
1574 | | -'month' => 'und Monat:', |
1575 | | -'year' => 'bis Jahr:', |
| 1573 | +'uctop' => '(aktuell)', |
| 1574 | +'month' => 'Bis Monat:', |
| 1575 | +'year' => 'und Jahr:', |
| 1576 | +'year-month' => '$2 $1', |
1576 | 1577 | |
1577 | 1578 | 'sp-contributions-newest' => 'Jüngste', |
1578 | 1579 | 'sp-contributions-oldest' => 'Älteste', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -27,6 +27,8 @@ |
28 | 28 | * (bug 11136) If using Postgres, search path is explicitly set if wgDBmwschema is |
29 | 29 | not set to 'mediawiki', allowing multiple mediawiki instances per user. |
30 | 30 | * (bug 11151) Add descriptive <title> to revision history page |
| 31 | +* Add message 'year-month' to enable swap of year and month in input form of |
| 32 | + Special:Contributions |
31 | 33 | |
32 | 34 | === Bug fixes in 1.12 === |
33 | 35 | |