Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Gettext/PoMemoryWriter.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
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 |