'name' => 'translation', 'style' => 'width: 100%; height: 300px', )); $trans->a($msg->getAttrH("translation")); $input = new LPC_HTML_html_editor($trans); $t->a(new LPC_HTML_form_row(array( 'label'=>'Translation to target language ('.$target_lang->getAttrH('name').')', 'input'=>$input, 'explain'=>"If any parameters are specified in the code, they are formatted here as {0}, {1} etc in the most basic form. If you need more complex stuff, see <a href='http://www.php.net/manual/en/messageformatter.formatmessage.php#refsect1-messageformatter.formatmessage-examples'>the documentation</a>.", ))); $t->a(new LPC_HTML_form_row(array( 'label'=>'Comment', 'input'=>"<textarea name='comment' rows='5' style='width:100%; font-size: 85%'>".$ref->getAttrH('comment')."</textarea>", ))); $sysChecked=""; if ($ref->getAttr('system')) $sysChecked=' checked'; $t->a(new LPC_HTML_form_row(array( 'label'=>'Message options', 'input'=> "<input type='checkbox' name='system' value='1'$sysChecked id='system'> ". "<label for='system'>System message (not specific to this project)</label>" ))); $t->a(new LPC_HTML_form_row(array( 'label'=>' ', 'input'=>"<input type='submit' name='submit' value='Translate'> ". "<input type='submit' name='delete' value='Delete' onClick=\"return confirm('Are you sure you want to PERMANENTLY delete this message and all its translations?')\">", ))); $form->addSK(); $p->show();