X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FQnA%2Flib%2Fqnashowquestionform.php;h=0ac1c823775721f875b86ac9ce895ac54e9e9e21;hb=6120af3901cfe51ae648cea1e365238cea298d39;hp=27abd42757fc3404f7c398a4f6c4226ccbeca61c;hpb=8cfb81deac0c63787220909995b606fcb1300f59;p=quix0rs-gnu-social.git diff --git a/plugins/QnA/lib/qnashowquestionform.php b/plugins/QnA/lib/qnashowquestionform.php index 27abd42757..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,20 @@ class QnashowquestionForm extends Form function formData() { $this->out->hidden( - 'qna-quesiton-id', + 'qna-question-id', 'question-' . $this->question->id, 'id' ); + $this->out->hidden( + 'answer-action', + common_local_url( + 'qnanewanswer', + null, + array('id' => 'question-' . $this->question->id) + ) + ); + $this->out->raw($this->question->asHTML()); } @@ -138,14 +147,14 @@ class QnashowquestionForm extends Form if ($user->id == $this->question->profile_id) { $this->out->submit( 'qna-question-close', - // TRANS: Button text for closing a question + // TRANS: Button text for closing a question. _m('BUTTON', 'Close'), 'submit', 'submit', - // TRANS: Title for button text for closing a question - _('Close the question') + // TRANS: Title for button text for closing a question. + _m('Close the question to no one can answer it anymore.') ); - } + } } } @@ -156,6 +165,6 @@ class QnashowquestionForm extends Form */ function formClass() { - return 'form_close ajax'; + return 'form_question_show ajax'; } }