Fix i18n.

This commit is contained in:
Siebrand Mazeland 2011-03-24 16:52:32 +01:00
parent 53d3455749
commit 3810482d1c

View File

@ -482,9 +482,12 @@ abstract class ImPlugin extends Plugin
$body = trim(strip_tags($body)); $body = trim(strip_tags($body));
$content_shortened = common_shorten_links($body); $content_shortened = common_shorten_links($body);
if (Notice::contentTooLong($content_shortened)) { if (Notice::contentTooLong($content_shortened)) {
$this->sendFromSite($screenname, sprintf(_('Message too long - maximum is %1$d characters, you sent %2$d.'), $this->sendFromSite($screenname,
Notice::maxContent(), sprintf(_m('Message too long - maximum is %1$d character, you sent %2$d.',
mb_strlen($content_shortened))); 'Message too long - maximum is %1$d characters, you sent %2$d.',
Notice::maxContent()),
Notice::maxContent(),
mb_strlen($content_shortened)));
return; return;
} }