public function init() { parent::init(); if ($this->message === null) { $this->message = Yii::t('yii', '{attribute} must be either "{true}" or "{false}".'); } }