protected function setI18n(Doozr_I18n_Service_Interface $i18n = null)
    {
        // Check if I18n Service was passed ...
        if (null !== $i18n) {
            try {
                /* @var Doozr_I18n_Service $i18n */
                $i18n->addDomain($this->getScope());
                $i18n->addDomain('default');
            } catch (Doozr_I18n_Service_Exception $exception) {
                // Intentionally do nothing
            }

            $this->i18n = $i18n;
        }
    }
protected function setI18n(Doozr_I18n_Service_Interface $i18n = null)
    {
        // Check if I18n Service was passed ...
        if (null !== $i18n) {
            try {
                /* @var Doozr_I18n_Service $i18n */
                $i18n->addDomain($this->getScope());
                $i18n->addDomain('default');
            } catch (Doozr_I18n_Service_Exception $exception) {
                // Intentionally do nothing
            }

            $this->i18n = $i18n;
        }
    }
protected function setI18n ( Doozr_I18n_Service_Interface $ i18n = null ) { // Check if I18n Service was passed ... if ( null !== $ i18n ) { try { /* @var Doozr_I18n_Service $i18n */ $ i18n -> addDomain ( $ this -> getScope ( ) ) ; $ i18n -> addDomain ( 'default' ) ; } catch ( Doozr_I18n_Service_Exception $ exception ) { // Intentionally do nothing } $ this -> i18n = $ i18n ; } }
Setter for I18n Translator service.

@param Doozr_I18n_Service_Interface $i18n The I18n instance

@author Benjamin Carl <opensource@clickalicious.de>
Setter for I18n Translator service .