PoMemoryWriter::getLangcode

PoMemoryWriter::getLangcode() Implements Drupal\Component\Gettext\PoMetadataInterface:getLangcode(). Not implemented. Not relevant for the MemoryWriter. Overrides PoMetadataInterface::getLangcode File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 68 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code function getLangcode() { }

PoMemoryWriter::getHeader

PoMemoryWriter::getHeader() Implements Drupal\Component\Gettext\PoMetadataInterface:getHeader(). Not implemented. Not relevant for the MemoryWriter. Overrides PoMetadataInterface::getHeader File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 76 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code function getHeader() { }

PoMemoryWriter::getData

public PoMemoryWriter::getData() Get all stored PoItem's. Return value array PoItem File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 51 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code public function getData() { return $this->_items; }

PoMemoryWriter::$_items

Array to hold all PoItem elements. Type: array File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 15 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code private $_items;

PoMemoryWriter

Defines a Gettext PO memory writer, to be used by the installer. Hierarchy class \Drupal\Component\Gettext\PoMemoryWriter implements PoWriterInterface File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 8 Namespace Drupal\Component\Gettext Members Name Modifiers Type Description PoMemoryWriter::$_items private property Array to hold all PoItem elements. PoMemoryWriter::getData public function Get all stored PoItem's. PoMemoryWriter::getHeader fu

PoItem::__toString

public PoItem::__toString() Output the PoItem as a string. File core/lib/Drupal/Component/Gettext/PoItem.php, line 198 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code public function __toString() { return $this->formatItem(); }

PoItem::setTranslation

PoItem::setTranslation($translation) Set the translation string or the array of strings if the translation has plurals. Parameters string or array $translation: File core/lib/Drupal/Component/Gettext/PoItem.php, line 129 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setTranslation($translation) { $this->_translation = $translation; }

PoItem::setSource

PoItem::setSource($source) Set the source string or the array of strings if the translation has plurals. Parameters string or array $source: File core/lib/Drupal/Component/Gettext/PoItem.php, line 109 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setSource($source) { $this->_source = $source; }

PoItem::setPlural

PoItem::setPlural($plural) Set if the translation has plural values. Parameters bool $plural: File core/lib/Drupal/Component/Gettext/PoItem.php, line 138 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setPlural($plural) { $this->_plural = $plural; }

PoItem::setLangcode

PoItem::setLangcode($langcode) Set the language code of the current language. Parameters string $langcode: File core/lib/Drupal/Component/Gettext/PoItem.php, line 71 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setLangcode($langcode) { $this->_langcode = $langcode; }