How can i translate this message in any languate.
My Validation Rule.
array("password","validatePassword"),
My Model Function for custom validation
public function validatePassword($attribute,$params){
//$this->addError($attribute, 'Password cannot be blank'.$this->person_type);
if(empty($this->password) && $this->person_type == "user"){
$this->addError($attribute, Yii::t(LANG, "Password cannot be blank."));
}
}