protected function _initLocale() { $this->bootstrap('config'); $this->bootstrap('frontController'); $locale = new SbLocale(Registry::getConfig()->translation->default); Registry::setLocale($locale); $this->getResource('frontController')->registerPlugin(new \Cms\Controller\Plugin\LocaleSetup()); return $locale; }