@@ 29-50 (lines=22) @@ | ||
26 | /** |
|
27 | * {@inheritdoc} |
|
28 | */ |
|
29 | protected function configure() |
|
30 | { |
|
31 | $this->setName('ongr:translations:export'); |
|
32 | $this->setDescription('Export all translations from ES to yaml.'); |
|
33 | $this->addOption( |
|
34 | 'locales', |
|
35 | 'l', |
|
36 | InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
37 | 'Export only these locales, instead of using the managed locales.' |
|
38 | ); |
|
39 | $this->addOption( |
|
40 | 'force', |
|
41 | 'f', |
|
42 | InputOption::VALUE_NONE, |
|
43 | 'If set, the bundle will export all translations, regardless of status' |
|
44 | ); |
|
45 | $this->addArgument( |
|
46 | 'bundle', |
|
47 | InputArgument::OPTIONAL, |
|
48 | 'Import translations for the specific bundle.' |
|
49 | ); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * {@inheritdoc} |
@@ 29-50 (lines=22) @@ | ||
26 | /** |
|
27 | * {@inheritdoc} |
|
28 | */ |
|
29 | protected function configure() |
|
30 | { |
|
31 | $this->setName('ongr:translations:import'); |
|
32 | $this->setDescription('Import all translations from flat files into the elasticsearch database.'); |
|
33 | $this->addOption( |
|
34 | 'locales', |
|
35 | 'l', |
|
36 | InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
37 | 'Import only the specific locales, leave blank to import all configured.' |
|
38 | ) |
|
39 | ->addOption( |
|
40 | 'clean', |
|
41 | null, |
|
42 | InputOption::VALUE_NONE, |
|
43 | 'Clean not found translations keys' |
|
44 | ) |
|
45 | ->addArgument( |
|
46 | 'bundle', |
|
47 | InputArgument::OPTIONAL, |
|
48 | 'Import translations for the specific bundle.' |
|
49 | ); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * {@inheritdoc} |