Do proper translations for plurals
This commit is contained in:
parent
003e4e2a23
commit
a99198ba94
@ -617,8 +617,11 @@ class SubscriptionsCommand extends Command
|
|||||||
if(count($nicknames)==0){
|
if(count($nicknames)==0){
|
||||||
$out=_('You are not subscribed to anyone.');
|
$out=_('You are not subscribed to anyone.');
|
||||||
}else{
|
}else{
|
||||||
$out=_('You are subscribed to these people: ');
|
$out = ngettext('You are subscribed to this person:',
|
||||||
$out.=implode(', ',$nicknames);
|
'You are subscribed to these people:',
|
||||||
|
count($nicknames));
|
||||||
|
$out .= ' ';
|
||||||
|
$out .= implode(', ',$nicknames);
|
||||||
}
|
}
|
||||||
$channel->output($this->user,$out);
|
$channel->output($this->user,$out);
|
||||||
}
|
}
|
||||||
@ -636,8 +639,11 @@ class SubscribersCommand extends Command
|
|||||||
if(count($nicknames)==0){
|
if(count($nicknames)==0){
|
||||||
$out=_('No one is subscribed to you.');
|
$out=_('No one is subscribed to you.');
|
||||||
}else{
|
}else{
|
||||||
$out=_('These people are subscribed to you: ');
|
$out = ngettext('This person is subscribed to you:',
|
||||||
$out.=implode(', ',$nicknames);
|
'These people are subscribed to you:',
|
||||||
|
count($nicknames));
|
||||||
|
$out .= ' ';
|
||||||
|
$out .= implode(', ',$nicknames);
|
||||||
}
|
}
|
||||||
$channel->output($this->user,$out);
|
$channel->output($this->user,$out);
|
||||||
}
|
}
|
||||||
@ -655,7 +661,9 @@ class GroupsCommand extends Command
|
|||||||
if(count($groups)==0){
|
if(count($groups)==0){
|
||||||
$out=_('You are not a member of any groups.');
|
$out=_('You are not a member of any groups.');
|
||||||
}else{
|
}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);
|
$out.=implode(', ',$groups);
|
||||||
}
|
}
|
||||||
$channel->output($this->user,$out);
|
$channel->output($this->user,$out);
|
||||||
|
Loading…
Reference in New Issue
Block a user