Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
24 /** | 24 /** |
25 * {@inheritdoc} | 25 * {@inheritdoc} |
26 */ | 26 */ |
27 public function writeItem(PoItem $item) { | 27 public function writeItem(PoItem $item) { |
28 if (is_array($item->getSource())) { | 28 if (is_array($item->getSource())) { |
29 $item->setSource(implode(LOCALE_PLURAL_DELIMITER, $item->getSource())); | 29 $item->setSource(implode(PoItem::DELIMITER, $item->getSource())); |
30 $item->setTranslation(implode(LOCALE_PLURAL_DELIMITER, $item->getTranslation())); | 30 $item->setTranslation(implode(PoItem::DELIMITER, $item->getTranslation())); |
31 } | 31 } |
32 $context = $item->getContext(); | 32 $context = $item->getContext(); |
33 $this->items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation(); | 33 $this->items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation(); |
34 } | 34 } |
35 | 35 |