summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-16 15:57:57 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-16 15:57:57 -0500
commita99198ba94766dcfb58d4cc16358dc1438df422a (patch)
tree6150d30a97955d83859d3379740e41d73425f0a0
parent003e4e2a23054af3b5dc554664d655cf88ad4799 (diff)
Do proper translations for plurals
-rw-r--r--lib/command.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/command.php b/lib/command.php
index 0c98c94ac..7e98156b6 100644
--- a/lib/command.php
+++ b/lib/command.php
@@ -617,8 +617,11 @@ class SubscriptionsCommand extends Command
if(count($nicknames)==0){
$out=_('You are not subscribed to anyone.');
}else{
- $out=_('You are subscribed to these people: ');
- $out.=implode(', ',$nicknames);
+ $out = ngettext('You are subscribed to this person:',
+ 'You are subscribed to these people:',
+ count($nicknames));
+ $out .= ' ';
+ $out .= implode(', ',$nicknames);
}
$channel->output($this->user,$out);
}
@@ -636,8 +639,11 @@ class SubscribersCommand extends Command
if(count($nicknames)==0){
$out=_('No one is subscribed to you.');
}else{
- $out=_('These people are subscribed to you: ');
- $out.=implode(', ',$nicknames);
+ $out = ngettext('This person is subscribed to you:',
+ 'These people are subscribed to you:',
+ count($nicknames));
+ $out .= ' ';
+ $out .= implode(', ',$nicknames);
}
$channel->output($this->user,$out);
}
@@ -655,7 +661,9 @@ class GroupsCommand extends Command
if(count($groups)==0){
$out=_('You are not a member of any groups.');
}else{
- $out=_('You are a member of these groups: ');
+ $out = ngettext('You are a member of this group:',
+ 'You are a member of these groups:',
+ count($nicknames));
$out.=implode(', ',$groups);
}
$channel->output($this->user,$out);