if(\Drupal::moduleHandler()->moduleExists('dblog')&&\Drupal::currentUser()->hasPermission('access site reports')){
$message=\Drupal::translation()->formatPlural(count($results['failed_files']),'One translation file could not be imported. <a href=":url">See the log</a> for details.','@count translation files could not be imported. <a href=":url">See the log</a> for details.',[':url'=>Url::fromRoute('dblog.overview')->toString()]);