public function setTranslator($translator, $translatorDomain = null, $translatorLocale = null) {
    $this->translator = $translator;
    $this->setTranslatorDomain($translatorDomain);
    $this->setTranslatorLocale($translatorLocale);
    $this->setCaption($this->translate($this->getCaption()));
  }