ActionController/translate: detect domain only once

This commit is contained in:
Thomas Gelf 2014-06-22 20:09:23 +02:00
parent 3fc1205175
commit ea44de8698
1 changed files with 1 additions and 3 deletions

View File

@ -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()