X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmicroappplugin.php;h=1dfb90036e7c451c6f93ea4821ed58ba3daaa57c;hb=29403a764cf172f63d7e7f39b49fdd30c92d916e;hp=bd8558a35f9d248b21a06a7d0ca38b975aea63d4;hpb=e5961efc278c992be6dc057364771ff3266921d1;p=quix0rs-gnu-social.git diff --git a/lib/microappplugin.php b/lib/microappplugin.php index bd8558a35f..1dfb90036e 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -390,7 +390,7 @@ abstract class MicroAppPlugin extends Plugin $uri = $target->getUri(); if (!in_array($uri, $activity->context->attention)) { // @todo FIXME: please document (i18n). - // TRANS: Client exception. + // TRANS: Client exception thrown when ... throw new ClientException(_('Bookmark not posted to this group.')); } } else if ($target instanceof User) { @@ -404,7 +404,7 @@ abstract class MicroAppPlugin extends Plugin (empty($original) || $original->profile_id != $target->id)) { // @todo FIXME: Please document (i18n). - // TRANS: Client exception. + // TRANS: Client exception when ... throw new ClientException(_('Object not posted to this user.')); } } else { @@ -550,6 +550,7 @@ abstract class MicroAppPlugin extends Plugin function showNotice($notice, $out) { - throw new ServerException("You must implement either adaptNoticeListItem() or showNotice()"); + // TRANS: Server exception thrown when a micro app plugin developer has not done his job too well. + throw new ServerException(_('You must implement either adaptNoticeListItem() or showNotice().')); } }