public function translate($string, Array $vars = array())
    {
        // Use custom translator
        if ($this->translator) {
            return $this->translator($this->getString($string), $vars);
        }

        return $this->compileString($this->getString($string), $vars);
    }
public function translate($string, Array $vars = array())
    {
        // Use custom translator
        if ($this->translator) {
            return $this->translator($this->getString($string), $vars);
        }

        return $this->compileString($this->getString($string), $vars);
    }
public function translate ( $ string , Array $ vars = array ( ) ) { // Use custom translator if ( $ this -> translator ) { return $ this -> translator ( $ this -> getString ( $ string ) , $ vars ) ; } return $ this -> compileString ( $ this -> getString ( $ string ) , $ vars ) ; }
Translates the specified string.

@return string
Translates the specified string .