public function setTranslator($translator, $translatorDomain = null, $translatorLocale = null) {
    $this->translator = $translator;
    $this->setTranslatorDomain($translatorDomain);
    $this->setTranslatorLocale($translatorLocale);
    $this->setCaption($this->translate($this->getCaption()));
  }
public function setTranslator($translator, $translatorDomain = null, $translatorLocale = null) {
    $this->translator = $translator;
    $this->setTranslatorDomain($translatorDomain);
    $this->setTranslatorLocale($translatorLocale);
    $this->setCaption($this->translate($this->getCaption()));
  }
public function setTranslator ( $ translator , $ translatorDomain = null , $ translatorLocale = null ) { $ this -> translator = $ translator ; $ this -> setTranslatorDomain ( $ translatorDomain ) ; $ this -> setTranslatorLocale ( $ translatorLocale ) ; $ this -> setCaption ( $ this -> translate ( $ this -> getCaption ( ) ) ) ; }
The Symfony2 tranlator
@param \Symfony\Component\Translation\Translator $translator
The Symfony2 tranlator