function PoDatabaseWriter::writeItem
Overrides PoWriterInterface::writeItem
1 call to PoDatabaseWriter::writeItem()
- PoDatabaseWriter::writeItems in core/
modules/ locale/ src/ PoDatabaseWriter.php - Writes all or the given amount of items.
File
-
core/
modules/ locale/ src/ PoDatabaseWriter.php, line 189
Class
- PoDatabaseWriter
- Gettext PO writer working with the locale module database.
Namespace
Drupal\localeCode
public function writeItem(PoItem $item) {
if ($item->isPlural()) {
$item->setSource(implode(PoItem::DELIMITER, $item->getSource()));
$item->setTranslation(implode(PoItem::DELIMITER, $item->getTranslation()));
}
$this->importString($item);
}