tag->generator->doIf('!isset($__i18n_domains)'); $this->tag->generator->pushCode('$__i18n_domains = array()'); $this->tag->generator->doEnd(); //\''.str_replace(array('\\',"'"),array('\\\\',"\\'"),$expression).'\' $expression = $this->tag->generator->interpolateTalesVarsInString($this->expression); // push current domain and use new domain $code = '$__i18n_domains[] = $_translator->useDomain('.$expression.')'; $this->tag->generator->pushCode($code); } public function end() { // restore domain $code = '$_translator->useDomain(array_pop($__i18n_domains))'; $this->tag->generator->pushCode($code); } } ?>