if (null !==
$domain) { $outputMessage .=
sprintf(' and domain "%s"',
$domain);
} $io->
getErrorStyle()->
warning($outputMessage);
return self::EXIT_CODE_GENERAL_ERROR;
} // Load the fallback catalogues
$fallbackCatalogues =
$this->
loadFallbackCatalogues($locale,
$transPaths);
// Display header line
$headers =
['State', 'Domain', 'Id',
sprintf('Message Preview (%s)',
$locale)];
foreach ($fallbackCatalogues as $fallbackCatalogue) { $headers[] =
sprintf('Fallback Message Preview (%s)',
$fallbackCatalogue->
getLocale());
} $rows =
[];
// Iterate all message ids and determine their state
foreach ($allMessages as $domain =>
$messages) { foreach (array_keys($messages) as $messageId) { $value =
$currentCatalogue->
get($messageId,
$domain);