lajax\translatemanager\behaviors\TranslateBehavior::translateAttributes PHP Method

translateAttributes() public method

Translates a message to the specified language.
public translateAttributes ( Event $event )
$event yii\base\Event
    public function translateAttributes($event)
    {
        /* @var $owner BaseActiveRecord */
        $owner = $this->owner;
        foreach ($this->translateAttributes as $attribute) {
            $owner->{$attribute} = Yii::t($this->category, $owner->attributes[$attribute]);
        }
    }