Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Command/Config/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function configImport(DrupalStyle $io, StorageComparer $storage_comparer
$config_importer->import();
return true;
} catch (ConfigImporterException $e) {
$message = 'The import failed due to the following reasons:' . "\n";
$message = $this->trans('commands.config.import.messages.import-fail') . "\n";
$message .= implode("\n", $config_importer->getErrors());
$io->error(
sprintf(
Expand Down
4 changes: 2 additions & 2 deletions src/Command/Config/ImportSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$directory = $input->getOption('directory');

if (!$file) {
$io->error('File option is missing.');
$io->error($this->trans('commands.config.import.single..message.missing-file'));

return 1;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ private function configImport($io, StorageComparer $storageComparer)
return true;
}
} catch (ConfigImporterException $e) {
$message = 'The import failed due to the following reasons:' . "\n";
$message = $this->trans('commands.config.import.messages.import-fail') . "\n";
$message .= implode("\n", $configImporter->getErrors());
$io->error(
sprintf(
Expand Down
6 changes: 3 additions & 3 deletions src/Command/Module/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($process->isSuccessful()) {
$io->info(
sprintf(
'Module %s was downloaded with Composer.',
$this->trans('commands.module.install.messages.download-with-composer'),
$moduleItem
)
);
} else {
$io->error(
sprintf(
'Module %s seems not to be installed with Composer. Halting.',
$this->trans('commands.module.install.messages.not-installed-with-composer'),
$moduleItem
)
);
Expand All @@ -202,7 +202,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
unset($module[array_search($invalidModule, $module)]);
$io->error(
sprintf(
'Invalid module name: %s',
$this->trans('commands.module.install.messages.invalid-name'),
$invalidModule
)
);
Expand Down