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 config/translations/en/settings.set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ messages:
error-parsing: 'An error occurs during parsing of YAML file "%s".'
error-generating: 'Error setting new language in config file.'
error-writing: 'Error writing config file.'
success: 'Setting %s was set to %s for Drupal Console'
success: 'Setting %s was set to %s'
2 changes: 1 addition & 1 deletion config/translations/es/settings.set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ messages:
error-parsing: 'An error occurs during parsing of YAML file "%s".'
error-generating: 'Error setting new language in config file.'
error-writing: 'Error writing config file.'
success: 'Setting %s was set to %s for Drupal Console'
success: 'Configuración %s fué actualizada a %s'
2 changes: 1 addition & 1 deletion src/Command/AboutCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$commands = [
'init' => [
$this->trans('commands.init.description'),
$this->trans('commands.settings.init.description'),
'drupal init --override'
],
'quick-start' => [
Expand Down
4 changes: 4 additions & 0 deletions src/Command/Settings/SetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ protected function execute(InputInterface $input, OutputInterface $output)

$config->setConfigValue($parents, $settingValue);

if ($settingName == 'language') {
$this->getTranslator()->loadResource($settingValue, $application->getDirectoryRoot());
}

$io->success(
sprintf(
$this->trans('commands.settings.set.messages.success'),
Expand Down
3 changes: 1 addition & 2 deletions src/Command/Test/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$io->info($this->trans('commands.test.run.messages.phpunit-pending'));
return;
} else {

if(!class_exists($testClass)) {
if (!class_exists($testClass)) {
$io->error(
sprintf(
$this->trans('commands.test.run.messages.invalid-class'),
Expand Down