PoDatabaseReader
class PoDatabaseReader implements PoReaderInterface (View source)
Gettext PO reader working with the locale module database.
Methods
__construct()
Constructor, initializes with default options.
string
getLangcode()
Get language code.
setLangcode(string $langcode)
Set language code.
getOptions()
Get the options used by the reader.
setOptions(array $options)
Set the options for the current reader.
Details
__construct()
Constructor, initializes with default options.
string
getLangcode()
Get language code.
setLangcode(string $langcode)
Set language code.
getOptions()
Get the options used by the reader.
setOptions(array $options)
Set the options for the current reader.
PoHeader
getHeader()
Get header metadata.
setHeader(PoHeader $header)
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoItem
readItem()
Reads and returns a PoItem (source/translation pair).