]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix i18n.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 24 Mar 2011 15:52:32 +0000 (16:52 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 24 Mar 2011 15:52:32 +0000 (16:52 +0100)
lib/implugin.php

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