private function getForm() { $langid = $this->lang->getID(); $t = $this->news->getTranslationB($langid); $title = $t['newst_title']; $message = $t['newst_message']; // GWF_Language::setShowSupported(true); $data = array('langid' => array(GWF_Form::HIDDEN, $langid), 'title' => array(GWF_Form::STRING, $title, $this->module->lang('th_title')), 'message' => array(GWF_Form::MESSAGE, $message, $this->module->lang('th_message')), 'hidden' => array(GWF_Form::CHECKBOX, $this->news->isHidden(), $this->module->lang('th_hidden')), 'mailme' => array(GWF_Form::CHECKBOX, $this->news->isToBeMailed(), $this->module->lang('th_mail_me')), 'preview' => array(GWF_Form::SUBMIT, $this->module->lang('btn_preview'), ''), 'edit' => array(GWF_Form::SUBMIT, $this->module->lang('btn_edit'), ''), 'transid' => array(GWF_Form::SELECT, GWF_LangSelect::single(GWF_Language::SUPPORTED, 'transid'), $this->module->lang('th_transid')), 'translate' => array(GWF_Form::SUBMIT, $this->module->lang('btn_translate'), '')); return new GWF_Form($this, $data); }