public function PoDatabaseWriter::writeItems

Implements Drupal\Component\Gettext\PoWriterInterface::writeItems().

Overrides PoWriterInterface::writeItems

File

drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php, line 201
Definition of Drupal\locale\PoDatabaseWriter.

Class

PoDatabaseWriter
Gettext PO writer working with the locale module database.

Namespace

Drupal\locale

Code

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