You are here

public function PoStreamWriter::setLangcode in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::setLangcode()

Set the language code.

Parameters

string $langcode: The language code.

Overrides PoMetadataInterface::setLangcode

File

lib/Drupal/Component/Gettext/PoStreamWriter.php, line 72
Contains \Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function setLangcode($langcode) {
  $this->_langcode = $langcode;
}