mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +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)
|
public function translate($text)
|
||||||
{
|
{
|
||||||
$module = $this->getRequest()->getModuleName();
|
return Translator::translate($text, $this->view->translationDomain);
|
||||||
$domain = $module === 'default' ? Translator::DEFAULT_DOMAIN : $module;
|
|
||||||
return Translator::translate($text, $domain);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function ignoreXhrBody()
|
protected function ignoreXhrBody()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user