public function getAvailableLocales() {

		foreach($this->locales as $id => $l) {
			if(!$l) {
				$this->locales[$id] = new Locale($id);
			}
		}

		return $this->locales;
	}
public function getAvailableLocales() {

		foreach($this->locales as $id => $l) {
			if(!$l) {
				$this->locales[$id] = new Locale($id);
			}
		}

		return $this->locales;
	}
public function getAvailableLocales ( ) { foreach ( $ this -> locales as $ id => $ l ) { if ( ! $ l ) { $ this -> locales [ $ id ] = new Locale ( $ id ) ; } } return $ this -> locales ; }
returns an array with available Locale instances
because of lazy instantiation, missing instances are created now

@return array
returns an array with available Locale instances because of lazy instantiation missing instances are created now