diff core/modules/locale/src/LocaleLookup.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 7a779792577d
children
line wrap: on
line diff
--- a/core/modules/locale/src/LocaleLookup.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/locale/src/LocaleLookup.php	Thu May 09 15:33:08 2019 +0100
@@ -2,12 +2,12 @@
 
 namespace Drupal\locale;
 
+use Drupal\Component\Gettext\PoItem;
 use Drupal\Core\Cache\CacheBackendInterface;
 use Drupal\Core\Cache\CacheCollector;
 use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Language\LanguageManagerInterface;
 use Drupal\Core\Lock\LockBackendInterface;
-use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
 use Symfony\Component\HttpFoundation\RequestStack;
 
 /**
@@ -173,7 +173,7 @@
       }
     }
 
-    if (is_string($value) && strpos($value, PluralTranslatableMarkup::DELIMITER) !== FALSE) {
+    if (is_string($value) && strpos($value, PoItem::DELIMITER) !== FALSE) {
       // Community translations imported from localize.drupal.org as well as
       // migrated translations may contain @count[number].
       $value = preg_replace('!@count\[\d+\]!', '@count', $value);