src/Alert/Container.php
public function translate($text, $parameters = array())
    {
        if (!is_null($this->lang)) {
            return $this->lang->get($text, $parameters);
        }

        return $text;
    }
public function translate($text, $parameters = array())
    {
        if (!is_null($this->lang)) {
            return $this->lang->get($text, $parameters);
        }

        return $text;
    }
public function translate ( $ text , $ parameters = array ( ) ) { if ( ! is_null ( $ this -> lang ) ) { return $ this -> lang -> get ( $ text , $ parameters ) ; } return $ text ; }
Attempts to translate texts if the translator component is set and the
lang key is found, otherwise returns the original text.

@param $text
@param array $parameters
@return string
Attempts to translate texts if the translator component is set and the lang key is found otherwise returns the original text .