protected function translate($string)
    {
        $translated = $this->app['translator']->get($string);

        return is_string($translated) ? $translated : $string;
    }
protected function translate($string)
    {
        $translated = $this->app['translator']->get($string);

        return is_string($translated) ? $translated : $string;
    }
protected function translate ( $ string ) { $ translated = $ this -> app [ 'translator' ] -> get ( $ string ) ; return is_string ( $ translated ) ? $ translated : $ string ; }
Act on a string to translate it.

@param string $string

@return string
Act on a string to translate it .