Skip to content

Commit 08c2b9a

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Debug] fix ClassNotFoundFatalErrorHandler [Dotenv] Fixed infinite loop with missing quote followed by quoted value [TwigBridge] button_widget now has its title attr translated even if its label = null or false [PhpUnitBridge] When using phpenv + phpenv-composer plugin, composer executable is wrapped into a bash script [Security] Prevent canceled remember-me cookie from being accepted [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr
2 parents 75b1bd8 + 93f7e17 commit 08c2b9a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Command/TranslationUpdateCommand.php

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

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

205205
// load any messages from templates
206206
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
207-
$errorIo->comment('Parsing templates...');
207+
$io->comment('Parsing templates...');
208208
$this->extractor->setPrefix($input->getOption('prefix'));
209209
foreach ($viewsPaths as $path) {
210210
if (is_dir($path) || is_file($path)) {
@@ -214,7 +214,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
214214

215215
// load any existing messages from the translation files
216216
$currentCatalogue = new MessageCatalogue($input->getArgument('locale'));
217-
$errorIo->comment('Loading translation files...');
217+
$io->comment('Loading translation files...');
218218
foreach ($transPaths as $path) {
219219
if (is_dir($path)) {
220220
$this->reader->read($path, $currentCatalogue);
@@ -267,7 +267,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
267267
}
268268

269269
if ('xlf' === $input->getOption('output-format')) {
270-
$errorIo->comment(sprintf('Xliff output version is <info>%s</info>', $input->getOption('xliff-version')));
270+
$io->comment(sprintf('Xliff output version is <info>%s</info>', $input->getOption('xliff-version')));
271271
}
272272

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

280280
// save the files
281281
if (true === $input->getOption('force')) {
282-
$errorIo->comment('Writing files...');
282+
$io->comment('Writing files...');
283283

284284
$bundleTransPath = false;
285285
foreach ($transPaths as $path) {
@@ -299,7 +299,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
299299
}
300300
}
301301

302-
$errorIo->success($resultMessage.'.');
302+
$io->success($resultMessage.'.');
303303

304304
return null;
305305
}

0 commit comments

Comments
 (0)