if ($intlIcu) { $operation->
moveMessagesToIntlDomainsIfPossible();
} $this->writer->
write($operation->
getResult(),
$format,
$writeOptions);
} $io->
success(sprintf('Local translations has been updated from "%s" (for "%s" locale(s), and "%s" domain(s)).',
parse_url($provider, \PHP_URL_SCHEME
),
implode(', ',
$locales),
implode(', ',
$domains)));
return 0;
} $localTranslations =
$this->
readLocalTranslations($locales,
$domains,
$this->transPaths
);
// Append pulled translations to local ones.
$localTranslations->
addBag($providerTranslations->
diff($localTranslations));
foreach ($localTranslations->
getCatalogues() as $catalogue) { $this->writer->
write($catalogue,
$format,
$writeOptions);
} $io->
success(sprintf('New translations from "%s" has been written locally (for "%s" locale(s), and "%s" domain(s)).',
parse_url($provider, \PHP_URL_SCHEME
),
implode(', ',
$locales),
implode(', ',
$domains)));
return 0;
}