/** * Template translation parsing * * @param array $matches * @return string */ private function translationReplacer($matches) { $retval = $matches[1]; $retval = mb_substr($retval, 3, -1); $retval = $this->translation->get($retval); return $retval; }