Search for all
- Search 7.x for all
- Search 9.5.x for all
- Search 8.9.x for all
- Search 10.3.x for all
- Search 11.x for all
- Other projects
| Title | Object type | File name | Summary |
|---|---|---|---|
| PoHeader::$languageName | property | core/ |
Human readable language name. |
| PoHeader::$pluralForms | property | core/ |
Formula for the plural form. |
| PoHeader::$poDate | property | core/ |
Date the po file got created. |
| PoHeader::$projectName | property | core/ |
Name of the project the translation belongs to. |
| PoHeader::evaluatePlural | function | core/ |
Evaluate the plural element stack using a plural value. |
| PoHeader::getLanguageName | function | core/ |
Gets the human readable language name. |
| PoHeader::getPluralForms | function | core/ |
Gets the plural form. |
| PoHeader::getProjectName | function | core/ |
Gets the project name. |
| PoHeader::parseArithmetic | function | core/ |
Parses and sanitizes an arithmetic formula into a plural element stack. |
| PoHeader::parseHeader | function | core/ |
Parses a Gettext Portable Object file header. |
| 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. |
| PoItemTest | class | core/ |
Tests Drupal\Component\Gettext\PoItem. |
| PoItemTest.php | file | core/ |
Pagination
- Previous page
- Page 1280
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.