From fbc38e1ddc1e4971716b7374f86f4a3834327739 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 25 Aug 2008 14:13:32 +0000 Subject: [PATCH] Add {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param, it just wasn't in the message. --- includes/Metadata.php | 2 +- languages/messages/MessagesEn.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.', -- 2.20.1