protected function initParser()
    {
        $this->parser->unregisterPlugin('function', 'intl');
        $this->parser->registerPlugin('function', 'intl', [$this, 'translate']);
        $this->parser->assign("locales", $this->locales);
    }
protected function initParser()
    {
        $this->parser->unregisterPlugin('function', 'intl');
        $this->parser->registerPlugin('function', 'intl', [$this, 'translate']);
        $this->parser->assign("locales", $this->locales);
    }
protected function initParser ( ) { $ this -> parser -> unregisterPlugin ( 'function' , 'intl' ) ; $ this -> parser -> registerPlugin ( 'function' , 'intl' , [ $ this , 'translate' ] ) ; $ this -> parser -> assign ( "locales" , $ this -> locales ) ; }
Initialize the smarty parser.

The intl function is replaced, and locales are assigned.

@throws \SmartyException
Initialize the smarty parser .