/** * This method is intend to detect the user preferred locale. * * @param bool $lookupAlternative TRUE to try to find a matching locale, FALSE to use systems default as fallback * * @author Benjamin Carl <*****@*****.**> * * @return Doozr_I18n_Service_Detector Instance for chaining */ public function detect($lookupAlternative = true) { if (!self::$initialized) { self::$initialized = $this->init($lookupAlternative); } return $this; }