protected function trans($context, $key)
    {
        $message = "";

        if (array_key_exists($context, $this->messages)) {
            if (array_key_exists($key, $this->messages[$context])) {
                $message = $this->messages[$context][$key];
            }
        }

        return $message;
    }
protected function trans($context, $key)
    {
        $message = "";

        if (array_key_exists($context, $this->messages)) {
            if (array_key_exists($key, $this->messages[$context])) {
                $message = $this->messages[$context][$key];
            }
        }

        return $message;
    }
protected function trans ( $ context , $ key ) { $ message = "" ; if ( array_key_exists ( $ context , $ this -> messages ) ) { if ( array_key_exists ( $ key , $ this -> messages [ $ context ] ) ) { $ message = $ this -> messages [ $ context ] [ $ key ] ; } } return $ message ; }
Translate Hook labels

@param $context
@param $key
@return string
Translate Hook labels