Implements Drupal\Component\Gettext\PoWriterInterface::writeItem().
Overrides PoWriterInterface::writeItem
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()));
}
$context = $item
->getContext();
$this->_items[$context != NULL ? $context : ''][$item
->getSource()] = $item
->getTranslation();
}