@@ -168,7 +168,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
168
168
}
169
169
170
170
// Display header line
171
- $ headers = array ('State(s) ' , 'Domain ' , 'Id ' , sprintf ('Message Preview (%s) ' , $ locale ));
171
+ $ headers = array ('State ' , 'Domain ' , 'Id ' , sprintf ('Message Preview (%s) ' , $ locale ));
172
172
foreach ($ fallbackCatalogues as $ fallbackCatalogue ) {
173
173
$ headers [] = sprintf ('Fallback Message Preview (%s) ' , $ fallbackCatalogue ->getLocale ());
174
174
}
@@ -215,26 +215,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
215
215
} else {
216
216
$ table ->render ($ output );
217
217
}
218
-
219
- $ output ->writeln ('' );
220
- $ output ->writeln ('<info>Legend:</info> ' );
221
- $ output ->writeln (sprintf (' %s Missing message ' , $ this ->formatState (self ::MESSAGE_MISSING )));
222
- $ output ->writeln (sprintf (' %s Unused message ' , $ this ->formatState (self ::MESSAGE_UNUSED )));
223
- $ output ->writeln (sprintf (' %s Same as the fallback message ' , $ this ->formatState (self ::MESSAGE_EQUALS_FALLBACK )));
224
218
}
225
219
226
220
private function formatState ($ state )
227
221
{
228
222
if (self ::MESSAGE_MISSING === $ state ) {
229
- return '<fg=red>x</ > ' ;
223
+ return '<error>missing</error > ' ;
230
224
}
231
225
232
226
if (self ::MESSAGE_UNUSED === $ state ) {
233
- return '<fg=yellow>o</ > ' ;
227
+ return '<comment>unused</comment > ' ;
234
228
}
235
229
236
230
if (self ::MESSAGE_EQUALS_FALLBACK === $ state ) {
237
- return '<fg=green>=</ > ' ;
231
+ return '<info>fallback</info > ' ;
238
232
}
239
233
240
234
return $ state ;
0 commit comments