X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Funsubscribeform.php;h=0332bd8ca6a40b27f93a42aa168cb65aaf030e48;hb=ced00cf0bdd4f119e2126e2eba18a3df7ee45c11;hp=a8e6915d6c64de3ff2a608728d398306605e9e05;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/lib/unsubscribeform.php b/lib/unsubscribeform.php index a8e6915d6c..0332bd8ca6 100644 --- a/lib/unsubscribeform.php +++ b/lib/unsubscribeform.php @@ -46,7 +46,6 @@ require_once INSTALLDIR.'/lib/form.php'; * * @see SubscribeForm */ - class UnsubscribeForm extends Form { /** @@ -61,7 +60,6 @@ class UnsubscribeForm extends Form * @param HTMLOutputter $out output channel * @param Profile $profile profile of user to unsub from */ - function __construct($out=null, $profile=null) { parent::__construct($out); @@ -74,7 +72,6 @@ class UnsubscribeForm extends Form * * @return int ID of the form */ - function id() { return 'unsubscribe-' . $this->profile->id; @@ -86,7 +83,6 @@ class UnsubscribeForm extends Form * * @return string of the form class */ - function formClass() { return 'form_user_unsubscribe ajax'; @@ -97,7 +93,6 @@ class UnsubscribeForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('unsubscribe'); @@ -110,6 +105,7 @@ class UnsubscribeForm extends Form */ function formLegend() { + // TRANS: Form legend on unsubscribe form. $this->out->element('legend', null, _('Unsubscribe from this user')); } @@ -118,7 +114,6 @@ class UnsubscribeForm extends Form * * @return void */ - function formData() { $this->out->hidden('unsubscribeto-' . $this->profile->id, @@ -131,9 +126,11 @@ class UnsubscribeForm extends Form * * @return void */ - function formActions() { - $this->out->submit('submit', _('Unsubscribe'), 'submit', null, _('Unsubscribe from this user')); + // TRANS: Button text on unsubscribe form. + $this->out->submit('submit', _m('BUTTON','Unsubscribe'), 'submit', null, + // TRANS: Button title on unsubscribe form. + _('Unsubscribe from this user')); } }