Skip to content

Commit a5298ab

Browse files
committed
bug symfony#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 symfony@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'
2 parents 1014719 + aca1f28 commit a5298ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
125125
}
126126
}
127127

128-
if ($input->getOption('output-format') == 'xliff') {
128+
if ($input->getOption('output-format') == 'xlf') {
129129
$output->writeln('Xliff output version is <info>1.2</info>');
130130
}
131131
}

0 commit comments

Comments
 (0)