Add multilanguage error messages

`Yii` is not defined, you need to use `\Yii::t()` or add a `use Yii;` to the top of the file.