summaryrefslogtreecommitdiff
path: root/actions/newmessage.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-25 13:14:33 -0700
committerBrion Vibber <brion@pobox.com>2010-10-25 13:14:33 -0700
commitb483a0549f115b2d5f2cfb3d447e6cc5c4f469f3 (patch)
treef63f4f3e93bad7611f4b5651171fc5122ec65455 /actions/newmessage.php
parent3b6f738ab73b7f77dd09ac21dd9446876776fc04 (diff)
parentca489631db840e33757a71a7e4cb56b187c182d3 (diff)
Merge branch '1.0.x' into schema-x
Conflicts: plugins/CacheLog/locale/nb/LC_MESSAGES/CacheLog.po
Diffstat (limited to 'actions/newmessage.php')
-rw-r--r--actions/newmessage.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/actions/newmessage.php b/actions/newmessage.php
index 25e58feab..c58ed3849 100644
--- a/actions/newmessage.php
+++ b/actions/newmessage.php
@@ -147,8 +147,11 @@ class NewmessageAction extends Action
$content_shortened = common_shorten_links($this->content);
if (Message::contentTooLong($content_shortened)) {
- $this->showForm(sprintf(_('That\'s too long. ' .
- 'Max message size is %d chars.'),
+ // TRANS: Form validation error displayed when message content is too long.
+ // TRANS: %d is the maximum number of characters for a message.
+ $this->showForm(sprintf(_m('That\'s too long. Maximum message size is %d character.',
+ 'That\'s too long. Maximum message size is %d characters.',
+ Message::maxContent()),
Message::maxContent()));
return;
}