- if (common_logged_in()) {
- $current_user = common_current_user();
- if ($this->user->id === $current_user->id) {
- $message = _('You have no subscribers. Try subscribing to people you know and they might return the favor');
- } else {
- $message = sprintf(_('%s has no subscribers. Want to be the first?'), $this->user->nickname);
- }
- }
- else {
- $message = sprintf(_('%s has no subscribers. Why not [register an account](%%%%action.register%%%%) and be the first?'), $this->user->nickname);
+ if ($this->scoped instanceof Profile && $this->target->id === $this->scoped->id) {
+ // TRANS: Subscriber list text when the logged in user has no subscribers.
+ $message = _('You have no subscribers. Try subscribing to people you know and they might return the favor.');
+ } elseif ($this->scoped instanceof Profile) {
+ // TRANS: Subscriber list text when looking at the subscribers for a of a user other
+ // TRANS: than the logged in user that has no subscribers. %s is the user nickname.
+ $message = sprintf(_('%s has no subscribers. Want to be the first?'), $this->target->getNickname());
+ } else {
+ // TRANS: Subscriber list text when looking at the subscribers for a of a user that has none
+ // TRANS: as an anonymous user. %s is the user nickname.
+ // TRANS: This message contains a Markdown URL. The link description is between
+ // TRANS: square brackets, and the link between parentheses. Do not separate "]("
+ // TRANS: and do not change the URL part.
+ $message = sprintf(_('%s has no subscribers. Why not [register an account](%%%%action.register%%%%) and be the first?'), $this->target->getNickname());