r39539 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39538‎ | r39539 | r39540 >
Date:15:45, 17 August 2008
Author:demon
Status:old
Tags:
Comment:
{{PLURAL}}-ize 'siteusers'
Modified paths:
  • /trunk/phase3/includes/Credits.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Credits.php
@@ -144,7 +144,7 @@
145145 # "ThisSite user(s) A, B and C"
146146
147147 if (!empty($user)) {
148 - $user = wfMsg('siteusers', $user);
 148+ $user = wfMsg('siteusers', array( $user, count($contributors) ) );
149149 }
150150
151151 # This is the big list, all mooshed together. We sift for blank strings
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2758,7 +2758,7 @@
27592759 'lastmodifiedatby' => 'This page was last modified $2, $1 by $3.', # $1 date, $2 time, $3 user
27602760 'othercontribs' => 'Based on work by $1.',
27612761 'others' => 'others',
2762 -'siteusers' => '{{SITENAME}} user(s) $1',
 2762+'siteusers' => '{{SITENAME}} {{PLURAL:$2|user|users}} $1',
27632763 'creditspage' => 'Page credits',
27642764 'nocredits' => 'There is no credits info available for this page.',
27652765

Status & tagging log