summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-11-19 12:00:42 -0800
committerBrion Vibber <brion@status.net>2010-11-19 12:00:42 -0800
commit834acaaa794254dfb9dc7e57dab498001d975d11 (patch)
treea0e1c347a30d84c28aada6a132f6773cf902058d /lib
parent9a590e0843063e9ac43f6372d55d6a0941764eab (diff)
parentd96192587451bfaaaa4889b7c69db0a2fbe14c41 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib')
-rw-r--r--lib/messageform.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/messageform.php b/lib/messageform.php
index b116964da..9d3f955a8 100644
--- a/lib/messageform.php
+++ b/lib/messageform.php
@@ -133,6 +133,8 @@ class MessageForm extends Form
$mutual_users = $user->mutuallySubscribedUsers();
$mutual = array();
+ // TRANS Label entry in drop-down selection box in direct-message inbox/outbox. This is the default entry in the drop-down box, doubling as instructions and a brake against accidental submissions with the first user in the list.
+ $mutual[0] = _('Select recipient:');
while ($mutual_users->fetch()) {
if ($mutual_users->id != $user->id) {
@@ -143,6 +145,11 @@ class MessageForm extends Form
$mutual_users->free();
unset($mutual_users);
+ if (count($mutual) == 1) {
+ // TRANS Entry in drop-down selection box in direct-message inbox/outbox when no one is available to message.
+ $mutual[0] = _('No mutual subscribers.');
+ }
+
$this->out->dropdown('to', _('To'), $mutual, null, false,
($this->to) ? $this->to->id : null);