Skip to content

Commit 6feca57

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Debug] fix ClassNotFoundFatalErrorHandler [Routing] Fix using a custom matcher & generator dumper class [Dotenv] Fixed infinite loop with missing quote followed by quoted value [HttpClient] Added missing sprintf [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 [Messenger] Added check if json_encode succeeded [Security] Prevent canceled remember-me cookie from being accepted [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr [Security\Guard] Fix missing typehints
2 parents d4d1b2d + 08c2b9a commit 6feca57

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
@@ -213,12 +213,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
213213
}
214214
}
215215

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

219219
// load any messages from templates
220220
$extractedCatalogue = new MessageCatalogue($input->getArgument('locale'));
221-
$errorIo->comment('Parsing templates...');
221+
$io->comment('Parsing templates...');
222222
$this->extractor->setPrefix($input->getOption('prefix'));
223223
foreach ($viewsPaths as $path) {
224224
if (is_dir($path) || is_file($path)) {
@@ -228,7 +228,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
228228

229229
// load any existing messages from the translation files
230230
$currentCatalogue = new MessageCatalogue($input->getArgument('locale'));
231-
$errorIo->comment('Loading translation files...');
231+
$io->comment('Loading translation files...');
232232
foreach ($transPaths as $path) {
233233
if (is_dir($path)) {
234234
$this->reader->read($path, $currentCatalogue);
@@ -296,7 +296,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
296296
}
297297

298298
if ('xlf' === $input->getOption('output-format')) {
299-
$errorIo->comment(sprintf('Xliff output version is <info>%s</info>', $input->getOption('xliff-version')));
299+
$io->comment(sprintf('Xliff output version is <info>%s</info>', $input->getOption('xliff-version')));
300300
}
301301

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

309309
// save the files
310310
if (true === $input->getOption('force')) {
311-
$errorIo->comment('Writing files...');
311+
$io->comment('Writing files...');
312312

313313
$bundleTransPath = false;
314314
foreach ($transPaths as $path) {
@@ -328,7 +328,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
328328
}
329329
}
330330

331-
$errorIo->success($resultMessage.'.');
331+
$io->success($resultMessage.'.');
332332

333333
return 0;
334334
}

0 commit comments

Comments
 (0)