translation

This commit is contained in:
wlx 2013-11-10 08:34:30 +00:00
parent d678da5dfd
commit 1ccce9505c
2 changed files with 6 additions and 6 deletions

View File

@ -8,30 +8,30 @@ class ContactForm extends Zend_Form
$this->setName('Contact');
$username = new Zend_Form_Element_Text('username');
$username->setLabel('姓名')->setRequired(true)
$username->setLabel('Name')->setRequired(true)
->addFilter('StripTags') ->addFilter('StringTrim')
->addValidator('StringLength',false,array(3,50));
$email=new Zend_Form_Element_Text('email');
$email->setLabel('邮件')
$email->setLabel('Email')
->setRequired(true)
->addFilter('StringTrim')
->addValidator('NotEmpty')
->addValidator('EmailAddress');
$subject=new Zend_Form_Element_Text('subject');
$subject->setLabel('主题')->setRequired(true);
$subject->setLabel('Subject')->setRequired(true);
$body=new Zend_Form_Element_Textarea('body');
$body->setLabel('内容')->setRequired(true)->setAttrib('rows',4);
$body->setLabel('Content')->setRequired(true)->setAttrib('rows',4);
$id = new Zend_Form_Element_Hidden('id');
$submit = new Zend_Form_Element_Submit('submit');
$submit ->setAttrib('id', 'submitbutton')
->setAttrib('class', 'btn btn-primary')
->setLabel('发送');
->setLabel('Send');
$spam=new element_bcSpamBlock('spam');
$spam->addPrefixPath('Validator','validator/','validate')

View File

@ -4,7 +4,7 @@ class Metadata
private $db; //传入PDO对象.
//使用到的公共变量
public $tbl_metadata = "metadata";
public $tbl_metadata = "en.normalmetadata";
function __construct($db)
{