8000 [FrameworkBundle] Improve documentation about translation:extract --s… · symfony/symfony@1dbf13e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1dbf13e

Browse files
marien-probesysfabpot
authored andcommitted
[FrameworkBundle] Improve documentation about translation:extract --sort option
The `--sort` option only works with `--dump-messages` (i.e. not with `--force`). It took me some time to realize that, and the documentation didn't help me since it was showing an example that didn't work. Contribute to #37918
1 parent 0550259 commit 1dbf13e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function configure()
9393
new InputOption('clean', null, InputOption::VALUE_NONE, 'Should clean not found messages'),
9494
new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'Specify the domain to extract'),
9595
new InputOption('xliff-version', null, InputOption::VALUE_OPTIONAL, 'Override the default xliff version (deprecated)'),
96-
new InputOption('sort', null, InputOption::VALUE_OPTIONAL, 'Return list of messages sorted alphabetically', 'asc'),
96+
new InputOption('sort', null, InputOption::VALUE_OPTIONAL, 'Return list of messages sorted alphabetically (only works with --dump-messages)', 'asc'),
9797
new InputOption('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'),
9898
])
9999
->setDescription(self::$defaultDescription)
@@ -123,7 +123,6 @@ protected function configure()
123123
You can dump a tree-like structure using the yaml format with <comment>--as-tree</> flag:
124124
125125
<info>php %command.full_name% --force --format=yaml --as-tree=3 en AcmeBundle</info>
126-
<info>php %command.full_name% --force --format=yaml --sort=asc --as-tree=3 fr</info>
127126

128127
EOF
129128
)

0 commit comments

Comments
 (0)
0