Add count for PLURAL support, requested at translatewiki: http://translatewiki.net...
authorRaimond Spekking <raymond@users.mediawiki.org>
Sun, 14 Mar 2010 18:28:34 +0000 (18:28 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Sun, 14 Mar 2010 18:28:34 +0000 (18:28 +0000)
includes/Credits.php

index 88a76b4..65a8793 100644 (file)
@@ -108,7 +108,7 @@ class Credits {
                if( $cnt > 0 && $contributors->count() > $cnt ){
                        $others_link = self::othersLink( $article );
                        if( !$showIfMax )
-                               return wfMsg( 'othercontribs', $others_link );
+                               return wfMsgExt( 'othercontribs', 'parsemag', $others_link, $contributors->count() );
                }
        
                $real_names = array();
@@ -163,7 +163,9 @@ class Credits {
                $creds = $wgLang->listToText( $fulllist );
 
                # "Based on work by ..."
-               return strlen( $creds ) ? wfMsg( 'othercontribs', $creds ) : '';
+               return strlen( $creds ) 
+                       ? wfMsgExt( 'othercontribs', 'parsemag', $creds, count( $fulllist ) )
+                       : '';
        }
 
        /**