Skip to content

Commit

Permalink
Make sure we're always aware of ICU domain
Browse files Browse the repository at this point in the history
  • Loading branch information
snpy committed Jan 28, 2022
1 parent f69a527 commit c81f1da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Catalogue/Operation/ReplaceOperation.php
Expand Up @@ -37,11 +37,8 @@ protected function processDomain($domain): void
'new' => [],
'obsolete' => [],
];
if (\defined(\sprintf('%s::INTL_DOMAIN_SUFFIX', MessageCatalogueInterface::class))) {
$intlDomain = $domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX;
} else {
$intlDomain = $domain;
}

$intlDomain = $domain . '+intl-icu' /* MessageCatalogueInterface::INTL_DOMAIN_SUFFIX */;

foreach ($this->source->all($domain) as $id => $message) {
$messageDomain = $this->source->defines($id, $intlDomain) ? $intlDomain : $domain;
Expand Down

0 comments on commit c81f1da

Please sign in to comment.