Skip to content

Commit

Permalink
Fix #6063. Incorrect terminology 'enabled' on pm:install command (#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Aug 2, 2024
1 parent 9dfb30c commit 5104088
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Commands/pm/PmCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ public function install(array $modules): void
$todo = $this->addInstallDependencies($modules);
$todo_str = ['!list' => implode(', ', $todo)];
if ($todo === []) {
$this->logger()->notice(dt('Already enabled: !list', ['!list' => implode(', ', $modules)]));
$this->logger()->notice(dt('Already installed: !list', ['!list' => implode(', ', $modules)]));
return;
} elseif (Drush::simulate()) {
$this->output()->writeln(dt('The following module(s) will be enabled: !list', $todo_str));
$this->output()->writeln(dt('The following module(s) will be installed: !list', $todo_str));
return;
} elseif (array_values($todo) !== $modules) {
$this->output()->writeln(dt('The following module(s) will be enabled: !list', $todo_str));
$this->output()->writeln(dt('The following module(s) will be installed: !list', $todo_str));
if (!$this->io()->confirm(dt('Do you want to continue?'))) {
throw new UserAbortException();
}
Expand All @@ -93,7 +93,7 @@ public function install(array $modules): void
if (batch_get()) {
drush_backend_batch_process();
}
$this->logger()->success(dt('Successfully enabled: !list', $todo_str));
$this->logger()->success(dt('Successfully installed: !list', $todo_str));
}

/**
Expand Down

0 comments on commit 5104088

Please sign in to comment.