public function getLocale($fromSession = false) { if ($fromSession && ($locale = $this->getSessionLocale())) { return $locale; } return $this->activeLocale; }