public function getLocale() { if (is_null($this->locale)) { $this->setLocale(); } return $this->locale; }