protected function createLocaleFiles(InstallationData $data)
{
// all available languages
$languages = array_unique(array_merge($data->getLanguages(), $data->getInterfaceLanguages()));
// loop all the languages
foreach ($languages as $language) {
// get applications
$applications = $this->container->get('database')->getColumn('SELECT DISTINCT application
FROM locale
WHERE language = ?', array((string) $language));
// loop applications
foreach ((array) $applications as $application) {
// build application locale cache
BackendLocaleModel::buildCache($language, $application);
}
}
}