for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Happyr\TranslationBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Once you have downloaded all the translations you may want to synchronize with the progress from the translators.
* This command will keep your placeholders for missing translations.
*/
class SynchronizeCommand extends ContainerAwareCommand
{
* {@inheritdoc}
protected function configure()
$this
->setName('happyr:translation:sync')
->setDescription('Sync all your translations with SaaS. Leave place holders for missing translations.');
}
protected function execute(InputInterface $input, OutputInterface $output)
$this->getContainer()->get('happyr.translation')->synchronizeAllTranslations();
$output->writeln('Synchronization complete');