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