function formLegend()
{
// TRANS: Form legend for revising the answer.
- $this->out->element('legend', null, _('Question'));
+ $this->out->element('legend', null, _m('LEGEND','Question'));
}
/**
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());
}
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.')
);
- }
+ }
}
}
*/
function formClass()
{
- return 'form_close ajax';
+ return 'form_question_show ajax';
}
}