Search for all

  1. Search 7.x for all
  2. Search 8.9.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
PoHeader::__construct function core/lib/Drupal/Component/Gettext/PoHeader.php Constructor, creates a PoHeader with default values.
PoHeader::__toString function core/lib/Drupal/Component/Gettext/PoHeader.php Generate a Gettext PO formatted header string based on data set earlier.
PoItem class core/lib/Drupal/Component/Gettext/PoItem.php PoItem handles one translation.
PoItem.php file core/lib/Drupal/Component/Gettext/PoItem.php
PoItem::$comment property core/lib/Drupal/Component/Gettext/PoItem.php The comment of this translation.
PoItem::$context property core/lib/Drupal/Component/Gettext/PoItem.php The context this translation belongs to.
PoItem::$langcode property core/lib/Drupal/Component/Gettext/PoItem.php The language code this translation is in.
PoItem::$plural property core/lib/Drupal/Component/Gettext/PoItem.php Flag indicating if this translation has plurals.
PoItem::$source property core/lib/Drupal/Component/Gettext/PoItem.php The source string or array of strings if it has plurals.
PoItem::$translation property core/lib/Drupal/Component/Gettext/PoItem.php The translation string or array of strings if it has plurals.
PoItem::DELIMITER constant core/lib/Drupal/Component/Gettext/PoItem.php The delimiter used to split plural strings.
PoItem::formatItem function core/lib/Drupal/Component/Gettext/PoItem.php Format the POItem as a string.
PoItem::formatPlural function core/lib/Drupal/Component/Gettext/PoItem.php Formats a plural translation.
PoItem::formatSingular function core/lib/Drupal/Component/Gettext/PoItem.php Formats a singular translation.
PoItem::formatString function core/lib/Drupal/Component/Gettext/PoItem.php Formats a string for output on multiple lines.
PoItem::getComment function core/lib/Drupal/Component/Gettext/PoItem.php Gets the comment of this translation.
PoItem::getContext function core/lib/Drupal/Component/Gettext/PoItem.php Gets the context this translation belongs to.
PoItem::getLangcode function core/lib/Drupal/Component/Gettext/PoItem.php Gets the language code of the currently used language.
PoItem::getSource function core/lib/Drupal/Component/Gettext/PoItem.php Gets the source string(s) if the translation has plurals.
PoItem::getTranslation function core/lib/Drupal/Component/Gettext/PoItem.php Gets the translation string(s) if the translation has plurals.
PoItem::isPlural function core/lib/Drupal/Component/Gettext/PoItem.php Get if the translation has plural values.
PoItem::setComment function core/lib/Drupal/Component/Gettext/PoItem.php Set the comment of this translation.
PoItem::setContext function core/lib/Drupal/Component/Gettext/PoItem.php Set the context this translation belongs to.
PoItem::setFromArray function core/lib/Drupal/Component/Gettext/PoItem.php Create the PoItem from a structured array.
PoItem::setLangcode function core/lib/Drupal/Component/Gettext/PoItem.php Set the language code of the current language.
PoItem::setPlural function core/lib/Drupal/Component/Gettext/PoItem.php Set if the translation has plural values.
PoItem::setSource function core/lib/Drupal/Component/Gettext/PoItem.php Sets the source string(s) if the translation has plurals.
PoItem::setTranslation function core/lib/Drupal/Component/Gettext/PoItem.php Sets the translation string(s) if the translation has plurals.
PoItem::__toString function core/lib/Drupal/Component/Gettext/PoItem.php Output the PoItem as a string.
PoMemoryWriter class core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Defines a Gettext PO memory writer, to be used by the installer.
PoMemoryWriter.php file core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
PoMemoryWriter::$items property core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Array to hold all PoItem elements.
PoMemoryWriter::getData function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Get all stored PoItem's.
PoMemoryWriter::getHeader function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Implements Drupal\Component\Gettext\PoMetadataInterface:getHeader().
PoMemoryWriter::getLangcode function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Implements Drupal\Component\Gettext\PoMetadataInterface:getLangcode().
PoMemoryWriter::setHeader function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Implements Drupal\Component\Gettext\PoMetadataInterface:setHeader().
PoMemoryWriter::setLangcode function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Implements Drupal\Component\Gettext\PoMetadataInterface:setLangcode().
PoMemoryWriter::writeItem function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Writes the given item.
PoMemoryWriter::writeItems function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Writes all or the given amount of items.
PoMemoryWriter::__construct function core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Constructor, initialize empty items.
PoMetadataInterface interface core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Methods required for both reader and writer implementations.
PoMetadataInterface.php file core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
PoMetadataInterface::getHeader function core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Get header metadata.
PoMetadataInterface::getLangcode function core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Get language code.
PoMetadataInterface::setHeader function core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Set header metadata.
PoMetadataInterface::setLangcode function core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Set language code.
PoReaderInterface interface core/lib/Drupal/Component/Gettext/PoReaderInterface.php Shared interface definition for all Gettext PO Readers.
PoReaderInterface.php file core/lib/Drupal/Component/Gettext/PoReaderInterface.php
PoReaderInterface::readItem function core/lib/Drupal/Component/Gettext/PoReaderInterface.php Reads and returns a PoItem (source/translation pair).
PoStreamInterface interface core/lib/Drupal/Component/Gettext/PoStreamInterface.php Common functions for file/stream based PO readers/writers.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.