How do I skip language selection with installation profile? I am building an installation profile for Drupal 7 and trying to skip the language selection page.

In the .profile file I put the following code:

function efocus_install_tasks_alter(&amp;$tasks, $install_state){
    $tasks['install_select_locale']['run'] = INSTALL_TASK_SKIP;
    $install_state['parameters']['locale'] = 'en';
}


This skips the page but apperantly the locale selection is not working for some reason. Anybody that has any experience with this? I am quite new to Drupal, just started a month ago and can't figure out why it is not working. Any tips on what I can try?
This cannot work, because $install_state is passed as value, not as reference. So changing it has no effects.

function efocus_install_tasks_alter(&amp;$tasks, $install_state){
    $tasks['install_select_locale']['function'] = '_efocus_locale_selection';
}

// local callback function
function _efocus_locale_selection(&amp;$install_state){
    $install_state['parameters']['locale'] = 'en';
}


This one works. I am simply replacing the standard_locale_selection with a custom function, which gets the install_state passed as reference. So i can change the value...