/** * Set domain for Translator. * If no domain is speciefied, get domain from routing module name. * * @param string * @return Vero\I18n\Translator */ public function setDomain($domain = null) { if (!$domain) { list($domain) = explode('/', $this->get('request')->action); } return $this->i18n->setDomain($domain); }