PoHeader::getPluralForms

PoHeader::getPluralForms() Gets the plural form. Return value string Plural form component from the header, for example: 'nplurals=2; plural=(n > 1);'. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 88 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code function getPluralForms() { return $this->_pluralForms; }

PoHeader::getLanguageName

PoHeader::getLanguageName() Gets the human readable language name. Return value string The human readable language name. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 108 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code function getLanguageName() { return $this->_languageName; }

PoHeader::evaluatePlural

protected PoHeader::evaluatePlural($element_stack, $n) Evaluate the plural element stack using a plural value. Using an element stack, which represents a plural formula, we calculate which plural string should be used for a given plural value. An example of plural formula parting and evaluation: Plural formula: 'n!=1' This formula is parsed by parseArithmetic() to a stack (array) of elements: array( 0 => '$n', 1 => '1', 2 => '!=', ); The evaluatePlural() method evaluates the $element_s

PoHeader::$_projectName

Name of the project the translation belongs to. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 65 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_projectName;

PoHeader::$_po_date

Date the po file got created. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 51 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_po_date;

PoHeader::$_pluralForms

Formula for the plural form. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 37 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_pluralForms;

PoHeader::$_languageName

Human readable language name. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 58 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_languageName;

PoHeader::$_langcode

Language code. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 30 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_langcode;

PoHeader::$_authors

Author(s) of the file. Type: string File core/lib/Drupal/Component/Gettext/PoHeader.php, line 44 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private $_authors;

PoHeader

Gettext PO header handler. Possible Gettext PO header elements are explained in http://www.gnu.org/software/gettext/manual/gettext.html#Header-Entry, but we only support a subset of these directly. Example header: "Project-Id-Version: Drupal core (7.11)\n" "POT-Creation-Date: 2012-02-12 22:59+0000\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "Language-Team: Catalan\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=