Do NOT fetch the translation domain from the request in Form::translate(..)

It might be the case that a module is using a library form...

refs #7551
This commit is contained in:
Johannes Meyer 2014-12-19 13:07:51 +01:00
parent cf43b81400
commit 6d263ae316

View File

@ -808,6 +808,9 @@ class Form extends Zend_Form
/** /**
* Return the translation domain for this form * Return the translation domain for this form
* *
* The returned translation domain is either determined based on
* this form's class path or it is the default `icinga' domain
*
* @return string * @return string
*/ */
protected function getTranslationDomain() protected function getTranslationDomain()
@ -816,7 +819,7 @@ class Form extends Zend_Form
return strtolower($matches[0]); return strtolower($matches[0]);
} }
return $this->getRequest()->getModuleName(); return 'icinga';
} }
/** /**