bug #14402 [FrameworkBundle][Translation] Check for 'xlf' instead of 'xliff' (xelaris)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle][Translation] Check for 'xlf' instead of 'xliff'

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

There is no translation writer format named 'xliff', but 'xlf' only. So the TranslationUpdateCommand can't be called with 'output-format' == 'xliff' and the version info will never be shown.

The change from 'xliff' to 'xlf' was introduced in https://github.com/symfony/symfony/commit/2cb6260. The translation dumper alias was just renamed while the translation loader supports both 'xliff' and 'xlf'.

Commits
-------

aca1f28 [FrameworkBundle] Check for 'xlf' instead of 'xliff'
This commit is contained in:
Fabien Potencier 2015-04-19 18:54:25 +02:00
commit a5298ab8cd
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ EOF
}
}
if ($input->getOption('output-format') == 'xliff') {
if ($input->getOption('output-format') == 'xlf') {
$output->writeln('Xliff output version is <info>1.2</info>');
}
}