From: Chad Horohoe Date: Mon, 25 Aug 2008 14:13:32 +0000 (+0000) Subject: Add {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param... X-Git-Tag: 1.31.0-rc.0~45679 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=fbc38e1ddc1e4971716b7374f86f4a3834327739;p=lhc%2Fweb%2Fwiklou.git Add {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param, it just wasn't in the message. --- diff --git a/includes/Metadata.php b/includes/Metadata.php index 4a0b003dc8..e67b089840 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -118,7 +118,7 @@ abstract class RdfMetaData { global $wgContLang; if( $user->isAnon() ){ - $this->element( $name, wfMsg( 'anonymous' ) ); + $this->element( $name, wfMsg( 'anonymous' ), 1 ); } else if( $real = $user->getRealName() ) { $this->element( $name, $real ); } else { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 6534c0c7a0..2ff0ba4794 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2813,7 +2813,7 @@ You can view its source.', 'notacceptable' => 'The wiki server cannot provide data in a format your client can read.', # Attribution -'anonymous' => 'Anonymous user(s) of {{SITENAME}}', +'anonymous' => 'Anonymous {{PLURAL:$1|user|users}} of {{SITENAME}}', 'siteuser' => '{{SITENAME}} user $1', 'lastmodifiedatby' => 'This page was last modified $2, $1 by $3.', # $1 date, $2 time, $3 user 'othercontribs' => 'Based on work by $1.',