Skip to content

Commit 7fa87b4

Browse files
committed
bug #35170 [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr (fancyweb)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #34865 (comment) | License | MIT | Doc PR | - Outputing everything on stderr seems wrong. I'm going to check upper branches. Commits ------- 87212e4 [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr
2 parents 4b419f2 + 87212e4 commit 7fa87b4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
200200
}
201201
}
202202

203-
$errorIo->title('Translation Messages Extractor and Dumper');
204-
$errorIo->comment(sprintf('Generating "<info>%s</info>" translation files for "<info>%s</info>"', $input->getArgument('locale'), $currentName));
203+
$io->title('Translation Messages Extractor and Dumper');
204+
$io->comment(sprintf('Generating "<info>%s</info>" translation files for "<info>%s</info>"', $input->getArgument('locale'), $currentName));
205205

206206
// load any messages from templates
207207
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
208-
$errorIo->comment('Parsing templates...');
208+
$io->comment('Parsing templates...');
209209
$prefix = $input->getOption('prefix');
210210
// @deprecated since version 3.4, to be removed in 4.0 along with the --no-prefix option
211211
if ($input->getOption('no-prefix')) {
@@ -221,7 +221,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
221221

222222
// load any existing messages from the translation files
223223
$currentCatalogue = new MessageCatalogue($input->getArgument('locale'));
224-
$errorIo->comment('Loading translation files...');
224+
$io->comment('Loading translation files...');
225225
foreach ($transPaths as $path) {
226226
if (is_dir($path)) {
227227
$this->reader->read($path, $currentCatalogue);
@@ -274,7 +274,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
274274
}
275275

276276
if ('xlf' == $input->getOption('output-format')) {
277-
$errorIo->comment('Xliff output version is <info>1.2</info>');
277+
$io->comment('Xliff output version is <info>1.2</info>');
278278
}
279279

280280
$resultMessage = sprintf('%d message%s successfully extracted', $extractedMessagesCount, $extractedMessagesCount > 1 ? 's were' : ' was');
@@ -286,7 +286,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
286286

287287
// save the files
288288
if (true === $input->getOption('force')) {
289-
$errorIo->comment('Writing files...');
289+
$io->comment('Writing files...');
290290

291291
$bundleTransPath = false;
292292
foreach ($transPaths as $path) {
@@ -306,7 +306,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
306306
}
307307
}
308308

309-
$errorIo->success($resultMessage.'.');
309+
$io->success($resultMessage.'.');
310310

311311
return null;
312312
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy