private function create_packages() {
		$packages = array();
		foreach ( $this->translations as $translation ) {
			$package = array();
			foreach ( $this->directory_list as $file ) {
				if ( false !== stripos( $file, $translation ) ) {
					$package[] = $this->language_files_dir . '/' . $file;
				}
			}
			$packages[ $translation ] = $package;
		}

		return $packages;
	}
private function create_packages() {
		$packages = array();
		foreach ( $this->translations as $translation ) {
			$package = array();
			foreach ( $this->directory_list as $file ) {
				if ( false !== stripos( $file, $translation ) ) {
					$package[] = $this->language_files_dir . '/' . $file;
				}
			}
			$packages[ $translation ] = $package;
		}

		return $packages;
	}
private function create_packages ( ) { $ packages = array ( ) ; foreach ( $ this -> translations as $ translation ) { $ package = array ( ) ; foreach ( $ this -> directory_list as $ file ) { if ( false !== stripos ( $ file , $ translation ) ) { $ package [ ] = $ this -> language_files_dir . '/' . $ file ; } } $ packages [ $ translation ] = $ package ; } return $ packages ; }
Creates an associative array of translations from directory listing.

@return array $packages Associative array of translation files per translation.
Creates an associative array of translations from directory listing .