r39944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39943‎ | r39944 | r39945 >
Date:14:13, 25 August 2008
Author:demon
Status:old
Tags:
Comment:
Add {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param, it just wasn't in the message.
Modified paths:
  • /trunk/phase3/includes/Metadata.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Metadata.php
@@ -118,7 +118,7 @@
119119 global $wgContLang;
120120
121121 if( $user->isAnon() ){
122 - $this->element( $name, wfMsg( 'anonymous' ) );
 122+ $this->element( $name, wfMsg( 'anonymous' ), 1 );
123123 } else if( $real = $user->getRealName() ) {
124124 $this->element( $name, $real );
125125 } else {
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2813,7 +2813,7 @@
28142814 'notacceptable' => 'The wiki server cannot provide data in a format your client can read.',
28152815
28162816 # Attribution
2817 -'anonymous' => 'Anonymous user(s) of {{SITENAME}}',
 2817+'anonymous' => 'Anonymous {{PLURAL:$1|user|users}} of {{SITENAME}}',
28182818 'siteuser' => '{{SITENAME}} user $1',
28192819 'lastmodifiedatby' => 'This page was last modified $2, $1 by $3.', # $1 date, $2 time, $3 user
28202820 'othercontribs' => 'Based on work by $1.',

Follow-up revisions

RevisionCommit summaryAuthorDate
r39947Tweak for r39944: correct fix :)ialex14:49, 25 August 2008

Status & tagging log