mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
ActionController/translate: detect domain only once
This commit is contained in:
parent
3fc1205175
commit
ea44de8698
@ -280,9 +280,7 @@ class ActionController extends Zend_Controller_Action
|
||||
*/
|
||||
public function translate($text)
|
||||
{
|
||||
$module = $this->getRequest()->getModuleName();
|
||||
$domain = $module === 'default' ? Translator::DEFAULT_DOMAIN : $module;
|
||||
return Translator::translate($text, $domain);
|
||||
return Translator::translate($text, $this->view->translationDomain);
|
||||
}
|
||||
|
||||
protected function ignoreXhrBody()
|
||||
|
Loading…
x
Reference in New Issue
Block a user