protected function getAvailablePackages() {
		$allPackages = $this->packageManager->getActivePackages();

		// make sure the packages of the framework are excluded depending on our settings
		$packages = array();
		$packagesToExclude = \TYPO3\Flow\Utility\Arrays::trimExplode(',', $this->settings['packagesToExclude']);
		foreach ($allPackages as $package) {
			if (!in_array($package->getPackageKey(), $packagesToExclude)
				&& $this->hasXliffFilesInDefaultDirectories($package)
			) {
				$packages[] = $package;
			}
		}

		return $packages;
	}
protected function getAvailablePackages() {
		$allPackages = $this->packageManager->getActivePackages();

		// make sure the packages of the framework are excluded depending on our settings
		$packages = array();
		$packagesToExclude = \TYPO3\Flow\Utility\Arrays::trimExplode(',', $this->settings['packagesToExclude']);
		foreach ($allPackages as $package) {
			if (!in_array($package->getPackageKey(), $packagesToExclude)
				&& $this->hasXliffFilesInDefaultDirectories($package)
			) {
				$packages[] = $package;
			}
		}

		return $packages;
	}
protected function getAvailablePackages ( ) { $ allPackages = $ this -> packageManager -> getActivePackages ( ) ; // make sure the packages of the framework are excluded depending on our settings $ packages = array ( ) ; $ packagesToExclude = \ TYPO3 \ Flow \ Utility \ Arrays :: trimExplode ( ',' , $ this -> settings [ 'packagesToExclude' ] ) ; foreach ( $ allPackages as $ package ) { if ( ! in_array ( $ package -> getPackageKey ( ) , $ packagesToExclude ) && $ this -> hasXliffFilesInDefaultDirectories ( $ package ) ) { $ packages [ ] = $ package ; } } return $ packages ; }
Returns an array of packages that are available for translation.

The list includes basically every active package
- minus the ones that are excluded in the configuration
- minus the ones that don't have the needed translation files

@return array all the available packages
Returns an array of packages that are available for translation .