X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapilistsubscribers.php;h=480f9b4a5f2fd2d70d76bcff08d53ee273f4a957;hb=53af608ef882eb03cd924ed630f98d856c11370a;hp=e8468a195d138993c800976cb82f705bebf96f45;hpb=371e923c37d947c8b276f555e612763f331dd31c;p=quix0rs-gnu-social.git diff --git a/actions/apilistsubscribers.php b/actions/apilistsubscribers.php index e8468a195d..480f9b4a5f 100644 --- a/actions/apilistsubscribers.php +++ b/actions/apilistsubscribers.php @@ -38,7 +38,6 @@ class ApiListSubscribersAction extends ApiListUsersAction * * @return boolean success */ - function handlePost() { $result = Profile_tag_subscription::add($this->list, @@ -46,6 +45,7 @@ class ApiListSubscribersAction extends ApiListUsersAction if(empty($result)) { $this->clientError( + // TRANS: Client error displayed when an unknown error occurs in the list subscribers action. _('An error occured.'), 500, $this->format @@ -62,6 +62,7 @@ class ApiListSubscribersAction extends ApiListUsersAction break; default: $this->clientError( + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 404, $this->format @@ -79,7 +80,8 @@ class ApiListSubscribersAction extends ApiListUsersAction if(empty($ptag)) { $this->clientError( - _('You are not subscribed to this list'), + // TRANS: Client error displayed when trying to unsubscribe from a non-subscribed list. + _('You are not subscribed to this list.'), 400, $this->format ); @@ -90,6 +92,7 @@ class ApiListSubscribersAction extends ApiListUsersAction if(empty($result)) { $this->clientError( + // TRANS: Client error displayed when an unknown error occurs unsubscribing from a list. _('An error occured.'), 500, $this->format @@ -106,6 +109,7 @@ class ApiListSubscribersAction extends ApiListUsersAction break; default: $this->clientError( + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 404, $this->format