function locale_translation_batch_status_finished

Batch finished callback: Set result message.

Parameters

boolean $success: TRUE if batch succesfully completed.

array $results: Batch results.

1 string reference to 'locale_translation_batch_status_finished'
locale_translation_batch_status_build in drupal/core/modules/locale/locale.batch.inc
Build a batch to get the status of remote and local translation files.

File

drupal/core/modules/locale/locale.batch.inc, line 161
Batch process to check the availability of remote or local po files.

Code

function locale_translation_batch_status_finished($success, $results) {
  $t = get_t();
  if ($success) {
    if ($results) {
      drupal_set_message(format_plural(count($results), 'Checked available interface translation updates for one project.', 'Checked available interface translation updates for @count projects.'));
    }
  }
  else {
    drupal_set_message($t('An error occurred trying to check available interface translation updates.'), 'error');
  }
}