* Copyright (C) 2011, StatusNet, Inc.
*
* Form for posting a group message
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class GroupMessageForm extends Form
{
var $group;
*
* @todo add a drop-down list to post to any group
*/
-
function __construct($out, $group, $content=null)
{
parent::__construct($out);
* Action for the form
*/
function action()
- {
+ {
return common_local_url('newgroupmessage',
array('nickname' => $this->group->nickname));
}
{
$this->out->element('legend',
null,
+ // TRANS: Form legend for sending private message to group %s.
sprintf(_m('Message to %s'), $this->group->nickname));
}
*
* @return
*/
-
function id()
{
return 'form_notice-group-message';
*
* @return
*/
-
function formClass()
{
return 'form_notice';
*
* @return
*/
-
function formData()
{
$this->out->element('label', array('for' => 'notice_data-text',
'id' => 'notice_data-text-label'),
+ // TRANS: Field label for private group message to group %s.
sprintf(_m('Direct message to %s'), $this->group->nickname));
$this->out->element('textarea', array('id' => 'notice_data-text',
if ($contentLimit > 0) {
$this->out->elementStart('dl', 'form_note');
+ // TRANS: Indicator for number of chatacters still available for notice.
$this->out->element('dt', null, _m('Available characters'));
$this->out->element('dd', array('class' => 'count'),
$contentLimit);
*
* @return
*/
-
function formActions()
{
$this->out->element('input', array('id' => 'notice_action-submit',
'class' => 'submit',
'name' => 'message_send',
'type' => 'submit',
+ // TRANS: Send button text for sending private group notice.
'value' => _m('Send button for sending notice', 'Send')));
}
}