behaviors/TranslateBehavior.php
public function translateAttributes($event)
    {
        foreach ($this->translateAttributes as $attribute) {
            $this->owner->{$attribute} = Yii::t($this->category, $this->owner->attributes[$attribute]);
        }
    }
public function translateAttributes($event)
    {
        foreach ($this->translateAttributes as $attribute) {
            $this->owner->{$attribute} = Yii::t($this->category, $this->owner->attributes[$attribute]);
        }
    }
public function translateAttributes ( $ event ) { foreach ( $ this -> translateAttributes as $ attribute ) { $ this -> owner -> { $ attribute } = Yii :: t ( $ this -> category , $ this -> owner -> attributes [ $ attribute ] ) ; } }
Translates the attributes to the current language.

@param \yii\base\Event $event
Translates the attributes to the current language .