X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigrouplist.php;h=a3fc3fc43573eface1437988d14726234b6a02d8;hb=cc34bb48c7243f78e198ad4d8c1806d5fe886a81;hp=1f6d44363f6377bc496550fe95bd2469c9257eec;hpb=e7c7fd39fc948f1169512916077185dd29973b60;p=quix0rs-gnu-social.git diff --git a/actions/apigrouplist.php b/actions/apigrouplist.php index 1f6d44363f..a3fc3fc435 100644 --- a/actions/apigrouplist.php +++ b/actions/apigrouplist.php @@ -35,8 +35,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apibareauth.php'; - /** * Returns whether a user is a member of a specified group. * @@ -67,6 +65,7 @@ class ApiGroupListAction extends ApiBareAuthAction $this->user = $this->getTargetUser(null); if (empty($this->user)) { + // TRANS: Client error displayed when user not found for an action. $this->clientError(_('No such user.'), 404, $this->format); return false; } @@ -100,7 +99,7 @@ class ApiGroupListAction extends ApiBareAuthAction ); $subtitle = sprintf( - // TRANS: Used as subtitle in check for group membership. %1$s is a user name, %2$s is the site name. + // TRANS: Used as subtitle in check for group membership. %1$s is the site name, %2$s is a user name. _('%1$s groups %2$s is a member of.'), $sitename, $this->user->nickname @@ -130,7 +129,7 @@ class ApiGroupListAction extends ApiBareAuthAction break; default: $this->clientError( - // TRANS: Client error displayed trying to execute an unknown API method checking group membership. + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 404, $this->format