public function loadLocaleFromSession() { $locale = $this->getSessionLocale(); if (!$locale) { return false; } $this->setLocale($locale); return true; }