X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpeopletagsubscribers.php;h=5cdccfa15bafee877324cf57699fca9b0f9e9ac6;hb=f0d762f1968fa0ac33b39d73cc9c0225c9e8a989;hp=1f2feeca29579513256e5fbdde0a02e48244a80c;hpb=cad040ce4e00ea66c062fefa744e3b540c29ae27;p=quix0rs-gnu-social.git diff --git a/actions/peopletagsubscribers.php b/actions/peopletagsubscribers.php index 1f2feeca29..5cdccfa15b 100644 --- a/actions/peopletagsubscribers.php +++ b/actions/peopletagsubscribers.php @@ -42,7 +42,6 @@ require_once(INSTALLDIR.'/lib/profilelist.php'); * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class PeopletagsubscribersAction extends OwnerDesignAction { var $page = null; @@ -76,6 +75,7 @@ class PeopletagsubscribersAction extends OwnerDesignAction } if (!$tagger) { + // TRANS: Client error displayed when a tagger is expected but not provided. $this->clientError(_('No tagger.'), 404); return false; } @@ -83,6 +83,7 @@ class PeopletagsubscribersAction extends OwnerDesignAction $user = User::staticGet('nickname', $tagger); if (!$user) { + // TRANS: Client error displayed trying to perform an action related to a non-existing user. $this->clientError(_('No such user.'), 404); return false; } @@ -91,7 +92,8 @@ class PeopletagsubscribersAction extends OwnerDesignAction $this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag)); if (!$this->peopletag) { - $this->clientError(_('No such peopletag.'), 404); + // TRANS: Client error displayed trying to reference a non-existing people tag. + $this->clientError(_('No such people tag.'), 404); return false; } @@ -101,10 +103,14 @@ class PeopletagsubscribersAction extends OwnerDesignAction function title() { if ($this->page == 1) { - return sprintf(_('Subscribers of people tagged %s by %s'), + // TRANS: Page title for list of people tag subscribers. + // TRANS: %1$s is a tag, %2$s is a user nickname. + return sprintf(_('Subscribers of people tagged %1$s by %2$s'), $this->peopletag->tag, $this->tagger->nickname); } else { - return sprintf(_('Subscribers of people tagged %s by %s, page %d'), + // TRANS: Page title for list of people tag subscribers. + // TRANS: %1$s is a tag, %2$s is a user nickname, %3$d is a page number. + return sprintf(_('Subscribers of people tagged %1$s by %2$s, page %3$d'), $this->peopletag->tag, $this->tagger->nickname, $this->page); } @@ -182,6 +188,7 @@ class PeopletagSubscriberListItem extends ProfileListItem parent::showFullName(); if ($this->profile->id == $this->peopletag->tagger) { $this->out->text(' '); + // TRANS: Addition in tag subscribers list for creator of a tag. $this->out->element('span', 'role', _('Creator')); } } @@ -221,7 +228,7 @@ class PeopletagSubscriberListItem extends ProfileListItem /** * Fetch necessary return-to arguments for the profile forms * to return to this list when they're done. - * + * * @return array */ protected function returnToArgs()