]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/lib/qnashowquestionform.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / QnA / lib / qnashowquestionform.php
index ad29d0d0189d7ad512290ccfea2f9e55ec6b53ca..0ac1c823775721f875b86ac9ce895ac54e9e9e21 100644 (file)
@@ -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,8 +114,18 @@ class QnashowquestionForm extends Form
     function formData()
     {
         $this->out->hidden(
-            'id',
-            'question-' . $this->question->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());
@@ -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';
     }
 }