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

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

        return $this;
    }