From b941bd3c46c90021662b5e30d2b1c04b611d1047 Mon Sep 17 00:00:00 2001 From: Nicolas Dewez Date: Sun, 26 Apr 2015 12:57:37 +0200 Subject: [PATCH] Changed output for translation:debug command --- .../Command/TranslationDebugCommand.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php index 14f1394368..238b6400d6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php @@ -168,7 +168,7 @@ EOF } // Display header line - $headers = array('State(s)', 'Domain', 'Id', sprintf('Message Preview (%s)', $locale)); + $headers = array('State', 'Domain', 'Id', sprintf('Message Preview (%s)', $locale)); foreach ($fallbackCatalogues as $fallbackCatalogue) { $headers[] = sprintf('Fallback Message Preview (%s)', $fallbackCatalogue->getLocale()); } @@ -215,26 +215,20 @@ EOF } else { $table->render($output); } - - $output->writeln(''); - $output->writeln('Legend:'); - $output->writeln(sprintf(' %s Missing message', $this->formatState(self::MESSAGE_MISSING))); - $output->writeln(sprintf(' %s Unused message', $this->formatState(self::MESSAGE_UNUSED))); - $output->writeln(sprintf(' %s Same as the fallback message', $this->formatState(self::MESSAGE_EQUALS_FALLBACK))); } private function formatState($state) { if (self::MESSAGE_MISSING === $state) { - return 'x'; + return 'missing'; } if (self::MESSAGE_UNUSED === $state) { - return 'o'; + return 'unused'; } if (self::MESSAGE_EQUALS_FALLBACK === $state) { - return '='; + return 'fallback'; } return $state;