src/Engine/CrudeSetupTrait/Trans.php
public function setTrans($attr, $trans = null)
    {
        $transList = is_array($attr)
            ? $attr
            : [$attr => $trans];

        foreach ($transList as $key => $value)
            $this->trans[$key] = $value;

        return $this;
    }
public function setTrans($attr, $trans = null)
    {
        $transList = is_array($attr)
            ? $attr
            : [$attr => $trans];

        foreach ($transList as $key => $value)
            $this->trans[$key] = $value;

        return $this;
    }
public function setTrans ( $ attr , $ trans = null ) { $ transList = is_array ( $ attr ) ? $ attr : [ $ attr => $ trans ] ; foreach ( $ transList as $ key => $ value ) $ this -> trans [ $ key ] = $ value ; return $ this ; }
Sets the Model trans.

@param  string|array $attr
@param  array $trans = null

@return self
Sets the Model trans .