]> 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 27abd42757fc3404f7c398a4f6c4226ccbeca61c..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,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';
     }
 }