X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FQnA%2Flib%2Fqnashowquestionform.php;h=0ac1c823775721f875b86ac9ce895ac54e9e9e21;hb=6120af3901cfe51ae648cea1e365238cea298d39;hp=71e644e2dc4fbec45d3e62e89396c95f068e7ce5;hpb=e7124528a37081e48da6b3ac118b72981c6c48b0;p=quix0rs-gnu-social.git diff --git a/plugins/QnA/lib/qnashowquestionform.php b/plugins/QnA/lib/qnashowquestionform.php index 71e644e2dc..0ac1c82377 100644 --- a/plugins/QnA/lib/qnashowquestionform.php +++ b/plugins/QnA/lib/qnashowquestionform.php @@ -103,7 +103,7 @@ class QnashowquestionForm extends Form function formLegend() { // TRANS: Form legend for revising the answer. - $this->out->element('legend', null, _('Question')); + $this->out->element('legend', null, _m('LEGEND','Question')); } /** @@ -114,11 +114,21 @@ class QnashowquestionForm extends Form function formData() { $this->out->hidden( - 'id', - 'question-' . $this->question->id + 'qna-question-id', + 'question-' . $this->question->id, + 'id' ); - $this->out->raw($this->question->asHTML()); + $this->out->hidden( + 'answer-action', + common_local_url( + 'qnanewanswer', + null, + array('id' => 'question-' . $this->question->id) + ) + ); + + $this->out->raw($this->question->asHTML()); } /** @@ -136,15 +146,15 @@ class QnashowquestionForm extends Form if (empty($this->question->closed)) { if ($user->id == $this->question->profile_id) { $this->out->submit( - 'close', - // TRANS: Button text for closing a question + 'qna-question-close', + // TRANS: Button text for closing a question. _m('BUTTON', 'Close'), 'submit', - null, - // TRANS: Title for button text for closing a question - _('Close the question') + 'submit', + // TRANS: Title for button text for closing a question. + _m('Close the question to no one can answer it anymore.') ); - } + } } } @@ -155,6 +165,6 @@ class QnashowquestionForm extends Form */ function formClass() { - return 'form_close ajax'; + return 'form_question_show ajax'; } }