%s>', $id);
}, array_keys($operation->getObsoleteMessages($domain)))
));
+
+ $extractedMessagesCount += $domainMessagesCount;
}
if ($input->getOption('output-format') == 'xlf') {
- $output->writeln('Xliff output version is 1.2');
+ $output->comment('Xliff output version is 1.2');
}
+
+ $resultMessage = sprintf('%d messages were successfully extracted', $extractedMessagesCount);
}
if ($input->getOption('no-backup') === true) {
@@ -178,7 +187,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// save the files
if ($input->getOption('force') === true) {
- $output->text('Writing files');
+ $output->comment('Writing files...');
$bundleTransPath = false;
foreach ($transPaths as $path) {
@@ -191,9 +200,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($bundleTransPath) {
$writer->writeTranslations($operation->getResult(), $input->getOption('output-format'), array('path' => $bundleTransPath, 'default_locale' => $this->getContainer()->getParameter('kernel.default_locale')));
}
+
+ if (true === $input->getOption('dump-messages')) {
+ $resultMessage .= ' and translation files were updated.';
+ } else {
+ $resultMessage = 'Translation files were successfully updated.';
+ }
}
- $output->newLine();
- $output->success('Success');
+ $output->success($resultMessage);
}
}
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