public function setTranslator(Nette\Localization\ITranslator $translator = NULL) { $this->translator = $translator; return $this; }