*
* @see DisfavorForm
*/
-
class NudgeForm extends Form
{
/**
* Profile of user to nudge
*/
-
var $profile = null;
/**
* @param HTMLOutputter $out output channel
* @param Profile $profile profile of user to nudge
*/
-
function __construct($out=null, $profile=null)
{
parent::__construct($out);
*
* @return int ID of the form
*/
-
function id()
{
return 'form_user_nudge';
*
* @return string of the form class
*/
-
function formClass()
{
return 'form_user_nudge ajax';
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('nudge',
*/
function formLegend()
{
+ // TRANS: Form legend of form to nudge/ping another user.
$this->out->element('legend', null, _('Nudge this user'));
}
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _('Nudge'), 'submit', null, _('Send a nudge to this user'));
+ $this->out->submit('submit',
+ // TRANS: Button text to nudge/ping another user.
+ _m('BUTTON','Nudge'),
+ 'submit',
+ null,
+ // TRANS: Button title to nudge/ping another user.
+ _('Send a nudge to this user.'));
}
}