public function PoHeader::__construct

Constructor, creates a PoHeader with default values.

Parameters

string $langcode: Language code.

File

drupal/core/lib/Drupal/Component/Gettext/PoHeader.php, line 78
Definition of Drupal\Component\Gettext\PoHeader

Class

PoHeader
Gettext PO header handler.

Namespace

Drupal\Component\Gettext

Code

public function __construct($langcode = NULL) {
  $this->_langcode = $langcode;
  $this->_po_date = date("Y-m-d H:iO");
  $this->_pluralForms = 'nplurals=2; plural=(n > 1);';
}