| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 42 | { |
||
| 43 | $app = $this->app; |
||
| 44 | |||
| 45 | $locale = $input->getOption('locale') |
||
| 46 | ? $input->getOption('locale') |
||
| 47 | : 'en_US' |
||
| 48 | ; |
||
| 49 | |||
| 50 | $results = $app['application.translator'] |
||
| 51 | ->prepare($app, $locale) |
||
| 52 | ; |
||
| 53 | |||
| 54 | $allMessages = $results['allMessages']; |
||
| 55 | $translatedMessages = $results['translatedMessages']; |
||
| 56 | $untranslatedMessages = $results['untranslatedMessages']; |
||
| 57 | |||
| 58 | $output->writeln('<info>The Translations for '.$locale.' were successfully prepared!</info>'); |
||
| 59 | $output->writeln( |
||
| 60 | '<info>All: '.count($allMessages).'; '. |
||
| 61 | 'Translated: '.count($translatedMessages).'; '. |
||
| 62 | 'Untranslated: '.count($untranslatedMessages).'!</info>' |
||
| 63 | ); |
||
| 64 | } |
||
| 65 | } |
||
| 66 |