8000 Revert "bug #20184 [FrameworkBundle] Convert null prefix to an empty … · symfony/symfony@b2fa7c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2fa7c4

Browse files
committed
Revert "bug #20184 [FrameworkBundle] Convert null prefix to an empty string in translation:update (chalasr)"
This reverts commit 3f650f8, reversing changes made to 962248d.
1 parent 8668aec commit b2fa7c4

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
@@ -118,9 +118,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
118118
// load any messages from templates
119119
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
120120
$output->text('Parsing templates');
121-
$prefix = $input->getOption('prefix');
122121
$extractor = $this->getContainer()->get('translation.extractor');
123-
$extractor->setPrefix(null === $prefix ? '' : $prefix);
122+
$extractor->setPrefix($input->getOption('prefix'));
124123
foreach ($transPaths as $path) {
125124
$path .= 'views';
126125
if (is_dir($path)) {

0 commit comments

Comments
 (0)
0