You are here

public function PoMemoryWriter::writeItems in Localization update 7.2

Implements PoWriterInterface::writeItems().

Overrides PoWriterInterface::writeItems

File

includes/gettext/PoMemoryWriter.php, line 58
Definition of Drupal\Component\Gettext\PoMemoryWriter.

Class

PoMemoryWriter
Defines a Gettext PO memory writer, to be used by the installer.

Code

public function writeItems(PoReaderInterface $reader, $count = -1) {
  $forever = $count == -1;
  while (($count-- > 0 || $forever) && ($item = $reader
    ->readItem())) {
    $this
      ->writeItem($item);
  }
}