Skip to content

Commit 7f116e8

Browse files
committed
[FrameworkBundle] Added domain column when debugging translations
1 parent 8859259 commit 7f116e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/TranslationDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
139139
$table = new Table($output);
140140

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

175-
$row = array($this->formatStates($states), $this->formatId($messageId), $this->sanitizeString($value));
175+
$row = array($this->formatStates($states), $domain, $this->formatId($messageId), $this->sanitizeString($value));
176176
foreach ($fallbackCatalogues as $fallbackCatalogue) {
177177
$row[] = $this->sanitizeString($fallbackCatalogue->get($messageId, $domain));
178178
}

0 commit comments

Comments
 (0)