public function __lang($key, ...$args)
    {
        $string = array_key_exists($key, $this->messages_dictionary) ? $this->messages_dictionary[$key] : $key;
        return (func_num_args() > 1) ? vsprintf($string, $args) : $string;
    }
public function __lang($key, ...$args)
    {
        $string = array_key_exists($key, $this->messages_dictionary) ? $this->messages_dictionary[$key] : $key;
        return (func_num_args() > 1) ? vsprintf($string, $args) : $string;
    }
public function __lang ( $ key , ... $ args ) { $ string = array_key_exists ( $ key , $ this -> messages_dictionary ) ? $ this -> messages_dictionary [ $ key ] : $ key ; return ( func_num_args ( ) > 1 ) ? vsprintf ( $ string , $ args ) : $ string ; }
Translates key-message to defined language using substitutional params

@param $key
@return mixed
Translates key - message to defined language using substitutional params