function install_import_translations_remaining

Finishes importing files at end of installation.

@todo This currently does the same as the first import step. Need to revisit once we have l10n_update functionality integrated. See http://drupal.org/node/1191488.

Parameters

$install_state: An array of information about the current installation state.

Return value

The batch definition, if there are language files to import.

File

drupal/core/includes/install.core.inc, line 1665
API functions for installing Drupal.

Code

function install_import_translations_remaining(&$install_state) {
  include_once drupal_get_path('module', 'locale') . '/locale.bulk.inc';
  return locale_translate_batch_import_files(array(
    'langcode' => $install_state['parameters']['langcode'],
  ));
}