You are here

public function PoStreamWriter::writeItems in Localization update 7.2

Implements PoWriterInterface::writeItems().

Overrides PoWriterInterface::writeItems

File

includes/gettext/PoStreamWriter.php, line 133
Definition of Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Code

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