Skip to content

Commit

Permalink
Fix translation for generate ajax command. (#3690)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel303 authored and jmolivas committed Jan 17, 2018
1 parent 02acda8 commit 5fa51d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Command/Generate/AjaxCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ protected function configure()
{
$this
->setName('generate:ajax:command')
->setDescription($this->trans('commands.generate.controller.description'))
->setHelp($this->trans('commands.generate.controller.help'))
->setDescription($this->trans('commands.generate.ajax.command.description'))
->setHelp($this->trans('commands.generate.ajax.command.help'))
->addOption(
'module',
null,
Expand All @@ -83,13 +83,13 @@ protected function configure()
'class',
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.generate.controller.options.class')
$this->trans('commands.generate.ajax.command.options.class')
)
->addOption(
'method',
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.generate.controller.options.class')
$this->trans('commands.generate.ajax.command.options.method')
)
->setAliases(['gac']);
}
Expand Down Expand Up @@ -132,7 +132,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
$class = $input->getOption('class');
if (!$class) {
$class = $this->getIo()->ask(
$this->trans('commands.generate.controller.questions.class'),
$this->trans('commands.generate.ajax.command.questions.class'),
'AjaxCommand',
function ($class) {
return $this->validator->validateClassName($class);
Expand All @@ -145,7 +145,7 @@ function ($class) {
$method = $input->getOption('method');
if (!$method) {
$method = $this->getIo()->ask(
$this->trans('commands.generate.controller.questions.method'),
$this->trans('commands.generate.ajax.command.questions.method'),
'hello'
);
$input->setOption('method', $method);
Expand Down

0 comments on commit 5fa51d1

Please sign in to comment.