Skip to content
Snippets Groups Projects

Issue #3435893 make unknown_packages translatable

All threads resolved!
Files
2
@@ -121,12 +121,16 @@ final class SupportedReleaseValidator implements EventSubscriberInterface {
@@ -121,12 +121,16 @@ final class SupportedReleaseValidator implements EventSubscriberInterface {
$event->addError($unsupported_packages, $summary);
$event->addError($unsupported_packages, $summary);
}
}
if ($unknown_packages) {
if ($unknown_packages) {
$summary = $this->formatPlural(
$event->addError([
count($unknown_packages),
$this->formatPlural(
'Cannot update because the following new or updated Drupal package does not have project information.',
count($unknown_packages),
'Cannot update because the following new or updated Drupal packages do not have project information.',
'Cannot update because the following new or updated Drupal package does not have project information: @unknown_packages',
);
'Cannot update because the following new or updated Drupal packages do not have project information: @unknown_packages',
$event->addError($unknown_packages, $summary);
[
 
'@unknown_packages' => implode(', ', $unknown_packages),
 
],
 
),
 
]);
}
}
}
}
Loading