Skip to content

Commit

Permalink
Replacing in translation keys from _ to - (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
blasvicco authored and enzolutions committed Jul 12, 2017
1 parent ffc9109 commit 03a2c9e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Command/Chain/ChainCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$file = $input->getOption('file');
if (!$file) {
$io->error($this->trans('commands.chain.messages.missing_file'));
$io->error($this->trans('commands.chain.messages.missing-file'));

return 1;
}
Expand All @@ -184,7 +184,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!$fileSystem->exists($file)) {
$io->error(
sprintf(
$this->trans('commands.chain.messages.invalid_file'),
$this->trans('commands.chain.messages.invalid-file'),
$file
)
);
Expand Down
10 changes: 5 additions & 5 deletions src/Command/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!$checks['php']['valid']) {
$io->error(
sprintf(
$this->trans('commands.check.messages.php_invalid'),
$this->trans('commands.check.messages.php-invalid'),
$checks['php']['current'],
$checks['php']['required']
)
Expand All @@ -110,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($extensions as $extension) {
$io->error(
sprintf(
$this->trans('commands.check.messages.extension_missing'),
$this->trans('commands.check.messages.extension-missing'),
$extension
)
);
Expand All @@ -122,7 +122,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$io->commentBlock(
sprintf(
$this->trans(
'commands.check.messages.extension_recommended'
'commands.check.messages.extension-recommended'
),
$extension
)
Expand All @@ -134,7 +134,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($configurations as $configuration) {
$io->error(
sprintf(
$this->trans('commands.check.messages.configuration_missing'),
$this->trans('commands.check.messages.configuration-missing'),
$configuration
)
);
Expand All @@ -146,7 +146,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$io->commentBlock(
sprintf(
$this->trans(
'commands.check.messages.configuration_overwritten'
'commands.check.messages.configuration-overwritten'
),
$configuration,
$overwritten
Expand Down
2 changes: 1 addition & 1 deletion src/Command/HelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function createDefinition()
{
return new InputDefinition(
[
new InputArgument('command_name', InputArgument::OPTIONAL, $this->trans('commands.help.arguments.command_name'), 'help'),
new InputArgument('command_name', InputArgument::OPTIONAL, $this->trans('commands.help.arguments.command-name'), 'help'),
new InputOption('xml', null, InputOption::VALUE_NONE, $this->trans('commands.help.options.xml')),
new InputOption('raw', null, InputOption::VALUE_NONE, $this->trans('commands.help.options.raw')),
new InputOption('format', null, InputOption::VALUE_REQUIRED, $this->trans('commands.help.options.format'), 'txt'),
Expand Down
2 changes: 1 addition & 1 deletion src/Descriptor/TextDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected function describeApplication(Application $application, array $options
$this->writeText("$help\n\n", $options);
}
$this->writeText($application->trans('commands.list.messages.usage'), $options);
$this->writeText($application->trans('commands.list.messages.usage_details'), $options);
$this->writeText($application->trans('commands.list.messages.usage-details'), $options);
$options['application'] = $application;
$this->describeInputDefinition(new InputDefinition($application->getDefinition()->getOptions()), $options);
$this->writeText("\n");
Expand Down

0 comments on commit 03a2c9e

Please sign in to comment.