From c81f1da3a0f71961b0cf65217ad0c629a7cbae5d Mon Sep 17 00:00:00 2001 From: Marek Snopkowski Date: Tue, 24 Aug 2021 13:51:35 +0200 Subject: [PATCH] Make sure we're always aware of ICU domain https://github.com/php-translation/symfony-bundle/issues/300 --- Catalogue/Operation/ReplaceOperation.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Catalogue/Operation/ReplaceOperation.php b/Catalogue/Operation/ReplaceOperation.php index 7b572103..12a53176 100644 --- a/Catalogue/Operation/ReplaceOperation.php +++ b/Catalogue/Operation/ReplaceOperation.php @@ -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;