You are here

public function PoDatabaseWriter::setLangcode in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/PoDatabaseWriter.php \Drupal\locale\PoDatabaseWriter::setLangcode()
  2. 10 core/modules/locale/src/PoDatabaseWriter.php \Drupal\locale\PoDatabaseWriter::setLangcode()

Set language code.

Parameters

string $langcode: Language code string.

Overrides PoMetadataInterface::setLangcode

File

core/modules/locale/src/PoDatabaseWriter.php, line 75

Class

PoDatabaseWriter
Gettext PO writer working with the locale module database.

Namespace

Drupal\locale

Code

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