X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitapifriendships.php;h=ae15d171e7c95e0233b2f26a0bc5484f477934b8;hb=e440b9cea02549032ba4f79c43964219dea23d82;hp=05c192ea6fc8bc46938c64d5a60b2dac2539a9bf;hpb=877eb138c4a793cb065e9575e4f31469caf86b36;p=quix0rs-gnu-social.git diff --git a/actions/twitapifriendships.php b/actions/twitapifriendships.php index 05c192ea6f..ae15d171e7 100644 --- a/actions/twitapifriendships.php +++ b/actions/twitapifriendships.php @@ -52,7 +52,8 @@ class TwitapifriendshipsAction extends TwitterapiAction { $user = $apidata['user']; if ($user->isSubscribed($other)) { - $this->client_error("Could not follow user: $other->nickname is already on your list.", 403, $apidata['content-type']); + $errmsg = sprintf(_('Could not follow user: %s is already on your list.'), $other->nickname); + $this->client_error($errmsg, 403, $apidata['content-type']); exit(); } @@ -67,7 +68,8 @@ class TwitapifriendshipsAction extends TwitterapiAction { $result = $sub->insert(); if (!$result) { - $this->client_error("Could not follow user: $other->nickname.", 400, $apidata['content-type']); + $errmsg = sprintf(_('Could not follow user: %s is already on your list.'), $other->nickname); + $this->client_error($errmsg, 400, $apidata['content-type']); exit(); }