Download a translation file for the selected langaguage.
array $install_state: An array of information about the current installation state.
string A themed status report, or an exception if there are requirement errors. Upon successfull download the page is reloaded and no output is returned.
function install_download_translation(&$install_state) {
// Check whether all conditions are met to download. Download the translation
// if possible.
$requirements = install_check_translations($install_state);
if ($output = install_display_requirements($install_state, $requirements)) {
return $output;
}
// The download was successfull, reload the page in the new lanagage.
install_goto(install_redirect_url($install_state));
}