@@ 79-89 (lines=11) @@ | ||
76 | parent::__construct(); |
|
77 | } |
|
78 | ||
79 | protected function configure(): void |
|
80 | { |
|
81 | $this |
|
82 | ->setName(self::$defaultName) |
|
83 | ->setDescription('Extract translations from source code.') |
|
84 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
85 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false) |
|
86 | ->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not') |
|
87 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want extract translations from.') |
|
88 | ; |
|
89 | } |
|
90 | ||
91 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
92 | { |
@@ 60-70 (lines=11) @@ | ||
57 | parent::__construct(); |
|
58 | } |
|
59 | ||
60 | protected function configure(): void |
|
61 | { |
|
62 | $this |
|
63 | ->setName(self::$defaultName) |
|
64 | ->setDescription('Show status about your translations.') |
|
65 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
66 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false) |
|
67 | ->addOption('json', null, InputOption::VALUE_NONE, 'If we should output in Json format') |
|
68 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle for which you want to check the translations.') |
|
69 | ; |
|
70 | } |
|
71 | ||
72 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
73 | { |
@@ 54-68 (lines=15) @@ | ||
51 | parent::__construct(); |
|
52 | } |
|
53 | ||
54 | protected function configure(): void |
|
55 | { |
|
56 | $this |
|
57 | ->setName(self::$defaultName) |
|
58 | ->setDescription('Replace local messages with messages from remote') |
|
59 | ->setHelp(<<<EOT |
|
60 | The <info>%command.name%</info> will erase all your local translations and replace them with translations downloaded from the remote. |
|
61 | EOT |
|
62 | ) |
|
63 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
64 | ->addOption('cache', null, InputOption::VALUE_NONE, '[DEPRECATED] Cache is now automatically cleared when translations have changed.') |
|
65 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want update translations from.') |
|
66 | ->addOption('export-config', 'exconf', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Options to send to the StorageInterface::export() function. Ie, when downloading. Example: --export-config foo:bar', []) |
|
67 | ; |
|
68 | } |
|
69 | ||
70 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
71 | { |