You are here

function lingotek_sync_download_target_finished in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.batch.inc \lingotek_sync_download_target_finished()
  2. 7.4 lingotek.batch.inc \lingotek_sync_download_target_finished()
  3. 7.6 lingotek.batch.inc \lingotek_sync_download_target_finished()
2 string references to 'lingotek_sync_download_target_finished'
lingotek_grid_download_ready in ./lingotek.bulk_grid.inc
lingotek_grid_download_selected in ./lingotek.bulk_grid.inc

File

./lingotek.batch.inc, line 372
Central location for batch create functions, before control is handed off to individual batch command files.

Code

function lingotek_sync_download_target_finished($success, $results, $operations) {
  if ($success) {
    $count = isset($results['downloads']) ? $results['downloads'] : 0;
    $message = format_plural($count, 'One translation downloaded.', '@count translations downloaded.');
  }
  else {
    $message = t('Finished with an error.');
  }
  drupal_set_message($message);
}