Skip to content

Commit

Permalink
[FrameworkBundle] Added domain column when debugging translations
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Mar 8, 2015
1 parent 0f00f7c commit 25ef76f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -139,7 +139,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$table = new Table($output);

// Display header line
$headers = array('State(s)', 'Id', sprintf('Message Preview (%s)', $locale));
$headers = array('State(s)', 'Domain', 'Id', sprintf('Message Preview (%s)', $locale));
foreach ($fallbackCatalogues as $fallbackCatalogue) {
$headers[] = sprintf('Fallback Message Preview (%s)', $fallbackCatalogue->getLocale());
}
Expand Down Expand Up @@ -172,7 +172,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
}

$row = array($this->formatStates($states), $this->formatId($messageId), $this->sanitizeString($value));
$row = array($this->formatStates($states), $domain, $this->formatId($messageId), $this->sanitizeString($value));
foreach ($fallbackCatalogues as $fallbackCatalogue) {
$row[] = $this->sanitizeString($fallbackCatalogue->get($messageId, $domain));
}
Expand Down

0 comments on commit 25ef76f

Please sign in to comment.