{{PLURAL}}-ize 'siteusers'
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 17 Aug 2008 15:45:08 +0000 (15:45 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 17 Aug 2008 15:45:08 +0000 (15:45 +0000)
includes/Credits.php
languages/messages/MessagesEn.php

index 4bbac25..8f22c44 100644 (file)
@@ -144,7 +144,7 @@ function getContributorCredits($article, $cnt, $showIfMax) {
        # "ThisSite user(s) A, B and C"
 
        if (!empty($user)) {
-               $user = wfMsg('siteusers', $user);
+               $user = wfMsg('siteusers', array( $user, count($contributors) ) );
        }
 
        # This is the big list, all mooshed together. We sift for blank strings
index 838eee3..fa42700 100644 (file)
@@ -2758,7 +2758,7 @@ You can view its source.',
 'lastmodifiedatby' => 'This page was last modified $2, $1 by $3.', # $1 date, $2 time, $3 user
 'othercontribs'    => 'Based on work by $1.',
 'others'           => 'others',
-'siteusers'        => '{{SITENAME}} user(s) $1',
+'siteusers'        => '{{SITENAME}} {{PLURAL:$2|user|users}} $1',
 'creditspage'      => 'Page credits',
 'nocredits'        => 'There is no credits info available for this page.',