function _install_prepare_import

Tells the translation import process that Drupal core is installed.

1 call to _install_prepare_import()
install_import_translations in drupal/core/includes/install.core.inc
Imports languages via a batch process during installation.

File

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

Code

function _install_prepare_import() {
  global $install_state;
  $release = install_get_localization_release();
  db_insert('locale_project')
    ->fields(array(
    'name' => 'drupal',
    'project_type' => 'module',
    'core' => $release['core'],
    'version' => $release['version'],
    'server_pattern' => $install_state['server_pattern'],
    'status' => 1,
  ))
    ->execute();
  module_load_include('compare.inc', 'locale');
  locale_translation_check_projects_local(array(
    'drupal',
  ), array(
    $install_state['parameters']['langcode'],
  ));
}