// User must be logged in.
if (!common_logged_in()) {
- $this->clientError(_('Not logged in.'));
+ // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
+ $this->clientError(_m('Not logged in.'));
return;
}
// User must have the right to review flags
if (!$user->hasRight(UserFlagPlugin::REVIEWFLAGS)) {
- $this->clientError(_('You cannot review profile flags.'));
+ // TRANS: Error message displayed when trying to review profile flags while not authorised.
+ $this->clientError(_m('You cannot review profile flags.'));
return false;
}
$flagging_users = implode(', ', $lnks);
// TRANS: Message displayed on a profile if it has been flagged.
// TRANS: %1$s is a comma separated list of at most 5 user nicknames that flagged.
- // TRANS: %2$d is a positive integer of additional flagging users. Also used for the plural.
+ // TRANS: %2$d is a positive integer of additional flagging users. Also used for plural.
$text .= sprintf(_m('Flagged by %1$s and %2$d other', 'Flagged by %1$s and %2$d others', $others), $flagging_users, $others);
} else {
// TRANS: Message displayed on a profile if it has been flagged.