PoDatabaseWriter::getLangcode

public PoDatabaseWriter::getLangcode() Get language code. Return value string Language code string. Overrides PoMetadataInterface::getLangcode File core/modules/locale/src/PoDatabaseWriter.php, line 68 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function getLangcode() { return $this->langcode; }

PoDatabaseWriter::getHeader

public PoDatabaseWriter::getHeader() Get header metadata. Return value \Drupal\Component\Gettext\PoHeader $header Header instance representing metadata in a PO header. Overrides PoMetadataInterface::getHeader File core/modules/locale/src/PoDatabaseWriter.php, line 130 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function getHeader() { return $this->header; }

PoDatabaseWriter::$report

Associative array summarizing the number of changes done. Keys for the array: additions: number of source strings newly added updates: number of translations updated deletes: number of translations deleted skips: number of strings skipped due to disallowed HTML Type: array File core/modules/locale/src/PoDatabaseWriter.php, line 56 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code private $report;

PoDatabaseWriter::$options

An associative array indicating what data should be overwritten, if any. Elements of the array: override_options not_customized: boolean indicating that not customized strings should be overwritten. customized: boolean indicating that customized strings should be overwritten. customized: the strings being imported should be saved as customized. One of LOCALE_CUSTOMIZED or LOCALE_NOT_CUSTOMIZED. Type: array File core/modules/locale/src/PoDatabaseWriter.php, line 29 Class PoDatabaseWrit

PoDatabaseWriter::$langcode

Language code of the language being written to the database. Type: string File core/modules/locale/src/PoDatabaseWriter.php, line 36 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code private $langcode;

PoDatabaseWriter::$header

Header of the po file written to the database. Type: \Drupal\Component\Gettext\PoHeader File core/modules/locale/src/PoDatabaseWriter.php, line 43 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code private $header;

PoDatabaseWriter

Gettext PO writer working with the locale module database. Hierarchy class \Drupal\locale\PoDatabaseWriter implements PoWriterInterface File core/modules/locale/src/PoDatabaseWriter.php, line 13 Namespace Drupal\locale Members Name Modifiers Type Description PoDatabaseWriter::$header private property Header of the po file written to the database. PoDatabaseWriter::$langcode private property Language code of the language being written to the database. PoDatabase

PoDatabaseReader::__construct

public PoDatabaseReader::__construct() Constructor, initializes with default options. File core/modules/locale/src/PoDatabaseReader.php, line 47 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function __construct() { $this->setOptions(array()); }

PoDatabaseReader::setOptions

public PoDatabaseReader::setOptions(array $options) Set the options for the current reader. File core/modules/locale/src/PoDatabaseReader.php, line 75 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function setOptions(array $options) { $options += array( 'customized' => FALSE, 'not_customized' => FALSE, 'not_translated' => FALSE, ); $this->options = $options; }

PoDatabaseReader::setLangcode

public PoDatabaseReader::setLangcode($langcode) Set language code. Parameters string $langcode: Language code string. Overrides PoMetadataInterface::setLangcode File core/modules/locale/src/PoDatabaseReader.php, line 61 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function setLangcode($langcode) { $this->langcode = $langcode; }