(bug 10530) Introduce optional "sp-contributions-explain" message for additional...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 14 Jul 2007 18:41:26 +0000 (18:41 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 14 Jul 2007 18:41:26 +0000 (18:41 +0000)
RELEASE-NOTES
includes/SpecialContributions.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index 1c3aef7..915fda3 100644 (file)
@@ -134,7 +134,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Link to user logs in toolbox when viewing a user page
 * (bug 10508) Allow HTML attributes on <gallery>
 * (bug 1962) Allow HTML attributes on <math>
-
+* (bug 10530) Introduce optional "sp-contributions-explain" message for
+  additional explanation in Special:Contributions
 
 == Bugfixes since 1.10 ==
 
index 6e883cd..ae51cde 100644 (file)
@@ -431,8 +431,13 @@ function contributionsForm( $options ) {
                Xml::label( wfMsg( 'month' ), 'month' ) . ' '.
                Xml::monthSelector( $options['month'], -1 ) . ' '.
                Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) .
-               Xml::closeElement( 'p' ) .
-               '</fieldset>' .
+               Xml::closeElement( 'p' );
+       
+       $explain = wfMsgExt( 'sp-contributions-explain', 'parseinline' );
+       if( !wfEmptyMsg( 'sp-contributions-explain', $explain ) )
+               $f .= "<p>{$explain}</p>";
+               
+       $f .= '</fieldset>' .
                Xml::closeElement( 'form' );
        return $f;
 }
\ No newline at end of file
index 235aeb2..6b6b0f3 100644 (file)
@@ -193,6 +193,7 @@ $wgOptionalMessages = array(
        'exif-filesource-3',
        'booksources-isbn',
        'isbn',
+       'sp-contributions-explain',
 );
 
 /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */
index 00c7a4a..d8e7a6d 100644 (file)
@@ -1248,6 +1248,7 @@ $wgMessageStructure = array(
                'sp-contributions-search',
                'sp-contributions-username',
                'sp-contributions-submit',
+               'sp-contributions-explain',
                'sp-contributions-footer',
                'sp-contributions-footer-anon',
        ),