X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpostnotice.php;h=43c764aa63b10728944eb2053c1415bf16fe0d14;hb=f4e17c1bdf42643c2bb530228f88809147992e9d;hp=694c7808d9930722c5d2e054a59b0387201c4ae2;hpb=3656a2cb13c0b6ba2326d6209739c1cd762ee2d2;p=quix0rs-gnu-social.git diff --git a/actions/postnotice.php b/actions/postnotice.php index 694c7808d9..43c764aa63 100644 --- a/actions/postnotice.php +++ b/actions/postnotice.php @@ -92,16 +92,18 @@ class PostnoticeAction extends Action { $content = common_shorten_links($_POST['omb_notice_content']); if (Notice::contentTooLong($content)) { + // TRANS: Client error displayed if the notice posted has too many characters. $this->clientError(_('Invalid notice content.'), 400); return false; } $license = $_POST['omb_notice_license']; $site_license = common_config('license', 'url'); if ($license && !common_compatible_license($license, $site_license)) { - throw new Exception(sprintf(_('Notice license ‘%1$s’ is not ' . - 'compatible with site license ‘%2$s’.'), + // TRANS: Exception thrown if a notice's license is not compatible with the StatusNet site license. + // TRANS: %1$s is the notice license, %2$s is the StatusNet site's license. + throw new Exception(sprintf(_('Notice license "%1$s" is not ' . + 'compatible with site license "%2$s".'), $license, $site_license)); } } } -?> \ No newline at end of file