public function setLocale($locale) { $this->language = strtolower(substr($locale, 0, 2)); return $this; }