Search for all
- Search 7.x for all
- Search 8.9.x for all
- Search 10.3.x for all
- Search 11.x for all
- Search main for all
- Other projects
| Title | Object type | File name | Summary |
|---|---|---|---|
| PoHeader::parsePluralForms | function | core/ |
Parses a Plural-Forms entry from a Gettext Portable Object file header. |
| PoHeader::setFromString | function | core/ |
Populate internal values from a string. |
| PoHeader::setLanguageName | function | core/ |
Set the human readable language name. |
| PoHeader::setProjectName | function | core/ |
Set the project name. |
| PoHeader::tokenizeFormula | function | core/ |
Tokenize the formula. |
| 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. |
| PoHeaderTest | class | core/ |
Unit tests for the Gettext PO file header handling features. |
| PoHeaderTest.php | file | core/ |
|
| PoHeaderTest::providerTestPluralsFormula | function | core/ |
Data provider for testPluralsFormula. |
| PoHeaderTest::testPluralsFormula | function | core/ |
Tests that plural expressions are evaluated correctly. |
| 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. |
Pagination
- Previous page
- Page 1173
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.