PoHeader::__construct

public function PoHeader::__construct

public PoHeader::__construct($langcode = NULL)

Constructor, creates a PoHeader with default values.

Parameters

string $langcode: Language code.

File

core/lib/Drupal/Component/Gettext/PoHeader.php, line 73

Class

PoHeader
Gettext PO header handler.

Namespace

Drupal\Component\Gettext

Code

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);';
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Gettext!PoHeader.php/function/PoHeader::__construct/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部