X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FGettext%2FPoMemoryWriter.php;fp=web%2Fcore%2Flib%2FDrupal%2FComponent%2FGettext%2FPoMemoryWriter.php;h=bac9e44c6b1791c1755fe3de17661d87846e85b2;hp=c5416b6fa420643df0069286c171a10363a746bd;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php b/web/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php index c5416b6fa..bac9e44c6 100644 --- a/web/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php +++ b/web/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php @@ -12,13 +12,13 @@ class PoMemoryWriter implements PoWriterInterface { * * @var array */ - private $_items; + protected $items; /** * Constructor, initialize empty items. */ public function __construct() { - $this->_items = []; + $this->items = []; } /** @@ -30,7 +30,7 @@ class PoMemoryWriter implements PoWriterInterface { $item->setTranslation(implode(LOCALE_PLURAL_DELIMITER, $item->getTranslation())); } $context = $item->getContext(); - $this->_items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation(); + $this->items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation(); } /** @@ -49,7 +49,7 @@ class PoMemoryWriter implements PoWriterInterface { * @return array PoItem */ public function getData() { - return $this->_items; + return $this->items; } /**