function config_download_translations in Configuration installer 8
Replaces install_download_translation() during config_installer installs.
Parameters
array $install_state: An array of information about the current installation state.
Return value
string A themed status report, or an exception if there are requirement errors. Upon successful download the page is reloaded and no output is returned.
See also
install_download_translation()
File
- ./
config_installer.profile, line 348 - Enables modules and site configuration for a minimal site installation.
Code
function config_download_translations(&$install_state) {
$needs_download = isset($install_state['parameters']['langcode']) && !isset($install_state['translations'][$install_state['parameters']['langcode']]) && $install_state['parameters']['langcode'] !== 'en';
if ($needs_download) {
return install_download_translation($install_state);
}
}