X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmessageform.php;h=9d3f955a8114d3b4f9df30594bbbf7e57776c66c;hb=dc424ab63a91bf4c29198452d54543b8737b65ac;hp=0c568e1bd8e12983f94904e2b9d8408926585359;hpb=1e166e1bc4a8b16ad2ef8e99db6a112f47803eda;p=quix0rs-gnu-social.git diff --git a/lib/messageform.php b/lib/messageform.php index 0c568e1bd8..9d3f955a81 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); @@ -175,6 +182,6 @@ class MessageForm extends Form 'class' => 'submit', 'name' => 'message_send', 'type' => 'submit', - 'value' => _('Send'))); + 'value' => _m('Send button for sending notice', 'Send'))); } }