/** * (non-PHPdoc) * @see Zend_Translate::__call() */ public function __call($method, array $options) { list($string) = $options; $language = $this->userSession->getLanguage(); if ($this->getMasterTranslator()->hasTranslate($string, $language)) { return $this->getMasterTranslator()->translate($string, $language); } else { return parent::__call($method, $options); } }