public function PoHeader::__construct in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Gettext/PoHeader.php \Drupal\Component\Gettext\PoHeader::__construct()
Constructor, creates a PoHeader with default values.
Parameters
string $langcode: Language code.
File
- lib/
Drupal/ Component/ Gettext/ PoHeader.php, line 78 - Contains \Drupal\Component\Gettext\PoHeader.
Class
- PoHeader
- Gettext PO header handler.
Namespace
Drupal\Component\GettextCode
public function __construct($langcode = NULL) {
$this->_langcode = $langcode;
// Ignore errors when run during site installation before
// date_default_timezone_set() is called.
$this->_po_date = @date("Y-m-d H:iO");
$this->_pluralForms = 'nplurals=2; plural=(n > 1);';
}