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…
Reference in New Issue