You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ CHANGELOG
18
18
* Add support for configuring log level, and status code by exception class
19
19
* Bind the `default_context` parameter onto serializer's encoders and normalizers
20
20
* Add support for `statusCode` default parameter when loading a template directly from route using the `Symfony\Bundle\FrameworkBundle\Controller\TemplateController` controller
21
+
* Deprecate `translation:update` command, use `translation:extract` instead
protectedstatic$defaultDescription = 'Extract missing translations keys from code to translation files.';
46
47
47
48
private$writer;
48
49
private$reader;
@@ -80,9 +81,9 @@ protected function configure()
80
81
newInputOption('output-format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format (deprecated)'),
81
82
newInputOption('format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format', 'xlf12'),
82
83
newInputOption('dump-messages', null, InputOption::VALUE_NONE, 'Should the messages be dumped in the console'),
83
-
newInputOption('force', null, InputOption::VALUE_NONE, 'Should the update be done'),
84
+
newInputOption('force', null, InputOption::VALUE_NONE, 'Should the extract be done'),
84
85
newInputOption('clean', null, InputOption::VALUE_NONE, 'Should clean not found messages'),
85
-
newInputOption('domain', null, InputOption::VALUE_OPTIONAL, 'Specify the domain to update'),
86
+
newInputOption('domain', null, InputOption::VALUE_OPTIONAL, 'Specify the domain to extract'),
86
87
newInputOption('xliff-version', null, InputOption::VALUE_OPTIONAL, 'Override the default xliff version (deprecated)'),
87
88
newInputOption('sort', null, InputOption::VALUE_OPTIONAL, 'Return list of messages sorted alphabetically', 'asc'),
88
89
newInputOption('as-tree', null, InputOption::VALUE_OPTIONAL, 'Dump the messages as a tree-like structure: The given value defines the level where to switch to inline YAML'),
@@ -126,6 +127,13 @@ protected function configure()
126
127
*/
127
128
protectedfunctionexecute(InputInterface$input, OutputInterface$output): int
if ('translation:update' === $input->getFirstArgument()) {
134
+
$errorIo->caution('Command "translation:update" is deprecated since version 5.4 and will be removed in Symfony 6.0. Use "translation:extract" instead.');
0 commit comments