From 1d61bd359b52b4ce520a21cdec709135b424bffe Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sun, 14 Mar 2010 18:28:34 +0000 Subject: [PATCH] Add count for PLURAL support, requested at translatewiki: http://translatewiki.net/wiki/Thread:Support/PLURAL_support_needed --- includes/Credits.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Credits.php b/includes/Credits.php index 88a76b49a7..65a8793936 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -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 ) ) + : ''; } /** -- 2.20.1