r63755 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63754‎ | r63755 | r63756 >
Date:18:28, 14 March 2010
Author:raymond
Status:ok
Tags:
Comment:
Add count for PLURAL support, requested at translatewiki: http://translatewiki.net/wiki/Thread:Support/PLURAL_support_needed
Modified paths:
  • /trunk/extensions/Translate/check-blacklist.php (modified) (history)
  • /trunk/phase3/includes/Credits.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Credits.php
@@ -108,7 +108,7 @@
109109 if( $cnt > 0 && $contributors->count() > $cnt ){
110110 $others_link = self::othersLink( $article );
111111 if( !$showIfMax )
112 - return wfMsg( 'othercontribs', $others_link );
 112+ return wfMsgExt( 'othercontribs', 'parsemag', $others_link, $contributors->count() );
113113 }
114114
115115 $real_names = array();
@@ -163,7 +163,9 @@
164164 $creds = $wgLang->listToText( $fulllist );
165165
166166 # "Based on work by ..."
167 - return strlen( $creds ) ? wfMsg( 'othercontribs', $creds ) : '';
 167+ return strlen( $creds )
 168+ ? wfMsgExt( 'othercontribs', 'parsemag', $creds, count( $fulllist ) )
 169+ : '';
168170 }
169171
170172 /**
Index: trunk/extensions/Translate/check-blacklist.php
@@ -28,6 +28,7 @@
2929 'lastmodifiedatby', // Optional time parameters
3030 'listusers-blocked', // Optional GENDER parameter
3131 'login-userblocked', // Optional GENDER parameter
 32+ 'othercontribs', // Optional count parameter
3233 'perfcachedts', // Optional time parameters
3334 'prefs-memberingroups-type', // Optional parameter for group name
3435 'prefs-registration-date-time', // Optional time parameters

Status & tagging log