8000 bug #30498 [translation] Update defaut format from yml to yaml (GaryP… · symfony/symfony@ee62741 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee62741

Browse files
committed
bug #30498 [translation] Update defaut format from yml to yaml (GaryPEGEOT)
This PR was squashed before being merged into the 3.4 branch (closes #30498). Discussion ---------- [translation] Update defaut format from yml to yaml | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #30443 | License | MIT | Doc PR | As stated in #30443 , command `php bin/console translation:update --dump-messages --force fr` will by default output the translation to yml format, which is not supported by Symfony Commits ------- ba42030 [translation] Update defaut format from yml to yaml
2 parents 7d227e9 + ba42030 commit ee62741

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function configure()
8383
new InputArgument('bundle', InputArgument::OPTIONAL, 'The bundle name or directory where to load the messages'),
8484
new InputOption('prefix', null, InputOption::VALUE_OPTIONAL, 'Override the default prefix', '__'),
8585
new InputOption('no-prefix', null, InputOption::VALUE_NONE, '[DEPRECATED] If set, no prefix is added to the translations'),
86-
new InputOption('output-format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format', 'yml'),
86+
new InputOption('output-format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format', 'yaml'),
8787
new InputOption('dump-messages', null, InputOption::VALUE_NONE, 'Should the messages be dumped in the console'),
8888
new InputOption('force', null, InputOption::VALUE_NONE, 'Should the update be done'),
8989
new InputOption('no-backup', null, InputOption::VALUE_NONE, 'Should backup be disabled'),

src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function createCommandTester($extractedMessages = [], $loadedMessages =
143143
->expects($this->any())
144144
->method('getFormats')
145145
->will(
146-
$this->returnValue(['xlf', 'yml'])
146+
$this->returnValue(['xlf', 'yml', 'yaml'])
147147
);
148148

149149
if (null === $kernel) {

0 commit comments

Comments
 (0)
0