public function setTranslator(PHPTAL_TranslationService $t)
    {
        $this->_translator = $t;
        $t->setEncoding($this->getEncoding());
        return $this;
    }
public function setTranslator(PHPTAL_TranslationService $t)
    {
        $this->_translator = $t;
        $t->setEncoding($this->getEncoding());
        return $this;
    }
public function setTranslator ( PHPTAL_TranslationService $ t ) { $ this -> _translator = $ t ; $ t -> setEncoding ( $ this -> getEncoding ( ) ) ; return $ this ; }
Set I18N translator.

This sets encoding used by the translator, so be sure to use encoding-dependent
features of the translator (e.g. addDomain) _after_ calling setTranslator.

@param PHPTAL_TranslationService $t instance

@return $this
Set I18N translator .