diff core/lib/Drupal/Component/Gettext/PoMemoryWriter.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php	Thu May 09 15:34:47 2019 +0100
@@ -26,8 +26,8 @@
    */
   public function writeItem(PoItem $item) {
     if (is_array($item->getSource())) {
-      $item->setSource(implode(LOCALE_PLURAL_DELIMITER, $item->getSource()));
-      $item->setTranslation(implode(LOCALE_PLURAL_DELIMITER, $item->getTranslation()));
+      $item->setSource(implode(PoItem::DELIMITER, $item->getSource()));
+      $item->setTranslation(implode(PoItem::DELIMITER, $item->getTranslation()));
     }
     $context = $item->getContext();
     $this->items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation();