X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frepeatform.php;h=67fc47b8de59ddb1f22d72454943483d4c92b2c3;hb=cc9f65ac8168896423ae76bf60704df3f0e066e9;hp=50e5d6dbe04d19e44284f1166a0872d2ec333ad8;hpb=51838a969b51c43e04c5ed16a6ada7eb0e589fd8;p=quix0rs-gnu-social.git diff --git a/lib/repeatform.php b/lib/repeatform.php index 50e5d6dbe0..67fc47b8de 100644 --- a/lib/repeatform.php +++ b/lib/repeatform.php @@ -40,13 +40,11 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class RepeatForm extends Form { /** * Notice to repeat */ - var $notice = null; /** @@ -55,7 +53,6 @@ class RepeatForm extends Form * @param HTMLOutputter $out output channel * @param Notice $notice notice to repeat */ - function __construct($out=null, $notice=null) { parent::__construct($out); @@ -68,7 +65,6 @@ class RepeatForm extends Form * * @return int ID of the form */ - function id() { return 'repeat-' . $this->notice->id; @@ -79,7 +75,6 @@ class RepeatForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('repeat'); @@ -90,7 +85,6 @@ class RepeatForm extends Form * * @return void */ - function sessionToken() { $this->out->hidden('token-' . $this->notice->id, @@ -104,7 +98,8 @@ class RepeatForm extends Form */ function formLegend() { - $this->out->element('legend', null, _('Repeat this notice')); + // TRANS: For legend for notice repeat form. + $this->out->element('legend', null, _('Repeat this notice?')); } /** @@ -112,7 +107,6 @@ class RepeatForm extends Form * * @return void */ - function formData() { $this->out->hidden('notice-n'.$this->notice->id, @@ -125,11 +119,13 @@ class RepeatForm extends Form * * @return void */ - function formActions() { $this->out->submit('repeat-submit-' . $this->notice->id, - _('Repeat'), 'submit', null, _('Repeat this notice')); + // TRANS: Button text to repeat a notice on notice repeat form. + _m('BUTTON','Yes'), 'submit', null, + // TRANS: Button title to repeat a notice on notice repeat form. + _('Repeat this notice.')); } /** @@ -137,7 +133,6 @@ class RepeatForm extends Form * * @return string the form's class */ - function formClass() { return 'form_repeat';