Add plural support where needed for added/removed tags messages.

This commit is contained in:
Siebrand Mazeland 2011-04-13 13:30:21 +02:00
parent 57c28ba4d0
commit f20ddaec56

View File

@ -472,10 +472,13 @@ class TagCommand extends Command
// TRANS: Succes message displayed if tagging a user succeeds. // TRANS: Succes message displayed if tagging a user succeeds.
// TRANS: %1$s is the tagged user's nickname, %2$s is a list of tags. // TRANS: %1$s is the tagged user's nickname, %2$s is a list of tags.
$channel->output($cur, sprintf(_('%1$s was tagged %2$s'), // TRANS: Plural is decided based on the number of tags added (not part of message).
$profile->nickname, $channel->output($cur, sprintf(_m('%1$s was tagged %2$s',
// TRANS: Separator for list of tags. '%1$s was tagged %2$s',
implode(_(', '), $clean_tags))); count($clean_tags)),
$profile->nickname,
// TRANS: Separator for list of tags.
implode(_(', '), $clean_tags)));
} }
} }
@ -522,10 +525,13 @@ class UntagCommand extends TagCommand
// TRANS: Succes message displayed if untagging a user succeeds. // TRANS: Succes message displayed if untagging a user succeeds.
// TRANS: %1$s is the untagged user's nickname, %2$s is a list of tags. // TRANS: %1$s is the untagged user's nickname, %2$s is a list of tags.
$channel->output($cur, sprintf(_('The following tag(s) were removed from user %1$s: %2$s.'), // TRANS: Plural is decided based on the number of tags removed (not part of message).
$profile->nickname, $channel->output($cur, sprintf(_m('The following tag was removed from user %1$s: %2$s.',
// TRANS: Separator for list of tags. 'The following tags were removed from user %1$s: %2$s.',
implode(_(', '), $tags))); count($tags)),
$profile->nickname,
// TRANS: Separator for list of tags.
implode(_(', '), $tags)));
} }
} }