summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-02 11:15:57 -0700
committerBrion Vibber <brion@pobox.com>2010-11-02 11:15:57 -0700
commit23f69c80b5c6a8730fc6ff3b9f3cec71840de03b (patch)
treee63517a180c7c1b84ccb31a2285de2250a05c646 /actions/newnotice.php
parent62408fef09990a127a58aa8f8a24777bc34d160d (diff)
parent760a1c27bc37a20b70788e5e132c4cf9da1bb579 (diff)
Merge branch '0.9.x' into twitstream
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 57cd847c6..0d4dcfccd 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -156,8 +156,11 @@ class NewnoticeAction extends Action
$content_shortened = common_shorten_links($content);
if (Notice::contentTooLong($content_shortened)) {
- $this->clientError(sprintf(_('That\'s too long. '.
- 'Max notice size is %d chars.'),
+ // TRANS: Client error displayed when the parameter "status" is missing.
+ // TRANS: %d is the maximum number of character for a notice.
+ $this->clientError(sprintf(_m('That\'s too long. Maximum notice size is %d character.',
+ 'That\'s too long. Maximum notice size is %d characters.',
+ Notice::maxContent()),
Notice::maxContent()));
}
@@ -178,12 +181,10 @@ class NewnoticeAction extends Action
if (Notice::contentTooLong($content_shortened)) {
$upload->delete();
- $this->clientError(
- sprintf(
- _('Max notice size is %d chars, including attachment URL.'),
- Notice::maxContent()
- )
- );
+ $this->clientError(sprintf(_m('Maximum notice size is %d character, including attachment URL.',
+ 'Maximum notice size is %d characters, including attachment URL.',
+ Notice::maxContent()),
+ Notice::maxContent()));
}
}