Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
PoHeader::$languageName property core/lib/Drupal/Component/Gettext/PoHeader.php Human readable language name.
PoHeader::$pluralForms property core/lib/Drupal/Component/Gettext/PoHeader.php Formula for the plural form.
PoHeader::$poDate property core/lib/Drupal/Component/Gettext/PoHeader.php Date the po file got created.
PoHeader::$projectName property core/lib/Drupal/Component/Gettext/PoHeader.php Name of the project the translation belongs to.
PoHeader::evaluatePlural function core/lib/Drupal/Component/Gettext/PoHeader.php Evaluate the plural element stack using a plural value.
PoHeader::getLanguageName function core/lib/Drupal/Component/Gettext/PoHeader.php Gets the human readable language name.
PoHeader::getPluralForms function core/lib/Drupal/Component/Gettext/PoHeader.php Gets the plural form.
PoHeader::getProjectName function core/lib/Drupal/Component/Gettext/PoHeader.php Gets the project name.
PoHeader::parseArithmetic function core/lib/Drupal/Component/Gettext/PoHeader.php Parses and sanitizes an arithmetic formula into a plural element stack.
PoHeader::parseHeader function core/lib/Drupal/Component/Gettext/PoHeader.php Parses a Gettext Portable Object file header.
PoHeader::parsePluralForms function core/lib/Drupal/Component/Gettext/PoHeader.php Parses a Plural-Forms entry from a Gettext Portable Object file header.
PoHeader::setFromString function core/lib/Drupal/Component/Gettext/PoHeader.php Populate internal values from a string.
PoHeader::setLanguageName function core/lib/Drupal/Component/Gettext/PoHeader.php Set the human readable language name.
PoHeader::setProjectName function core/lib/Drupal/Component/Gettext/PoHeader.php Set the project name.
PoHeader::tokenizeFormula function core/lib/Drupal/Component/Gettext/PoHeader.php Tokenize the formula.
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.
PoHeaderTest class core/tests/Drupal/Tests/Component/Gettext/PoHeaderTest.php Unit tests for the Gettext PO file header handling features.
PoHeaderTest.php file core/tests/Drupal/Tests/Component/Gettext/PoHeaderTest.php
PoHeaderTest::providerTestPluralsFormula function core/tests/Drupal/Tests/Component/Gettext/PoHeaderTest.php Data provider for testPluralsFormula.
PoHeaderTest::testPluralsFormula function core/tests/Drupal/Tests/Component/Gettext/PoHeaderTest.php Tests that plural expressions are evaluated correctly.
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.
PoItemTest class core/tests/Drupal/Tests/Component/Gettext/PoItemTest.php Tests Drupal\Component\Gettext\PoItem.
PoItemTest.php file core/tests/Drupal/Tests/Component/Gettext/PoItemTest.php

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