public function getTranslator() {
        if (!$this->_translator) {
            if ($this->translator) {
                $class = $this->translator;
                $this->_translator = $class::get();
                if (!is_a($this->_translator, '\\mpf\\interfaces\\TranslatorInterface')) {
                    $this->_translator = null;
                    $this->translator = '';
                    throw new Exception("Invalid translator $class!  Must implement \\mpf\\interfaces\\TranslatorInterface!");
                }
            }
        }
        return $this->_translator;
    }
public function getTranslator() {
        if (!$this->_translator) {
            if ($this->translator) {
                $class = $this->translator;
                $this->_translator = $class::get();
                if (!is_a($this->_translator, '\\mpf\\interfaces\\TranslatorInterface')) {
                    $this->_translator = null;
                    $this->translator = '';
                    throw new Exception("Invalid translator $class!  Must implement \\mpf\\interfaces\\TranslatorInterface!");
                }
            }
        }
        return $this->_translator;
    }
public function getTranslator ( ) { if ( ! $ this -> _translator ) { if ( $ this -> translator ) { $ class = $ this -> translator ; $ this -> _translator = $ class :: get ( ) ; if ( ! is_a ( $ this -> _translator , '\\mpf\\interfaces\\TranslatorInterface' ) ) { $ this -> _translator = null ; $ this -> translator = '' ; throw new Exception ( "Invalid translator $class!  Must implement \\mpf\\interfaces\\TranslatorInterface!" ) ; } } } return $ this -> _translator ; }
Return instance to translator
@return \mpf\interfaces\TranslatorInterface
@throws \mpf\translators\Exception
Return instance to translator