PoStreamReader::$context

Same name in other branches
  1. 9 core/lib/Drupal/Component/Gettext/PoStreamReader.php \Drupal\Component\Gettext\PoStreamReader::context
  2. 8.9.x core/lib/Drupal/Component/Gettext/PoStreamReader.php \Drupal\Component\Gettext\PoStreamReader::context
  3. 11.x core/lib/Drupal/Component/Gettext/PoStreamReader.php \Drupal\Component\Gettext\PoStreamReader::context

Parser context for the stream reader state machine.

Possible contexts are:

  • 'COMMENT' (#)
  • 'MSGID' (msgid)
  • 'MSGID_PLURAL' (msgid_plural)
  • 'MSGCTXT' (msgctxt)
  • 'MSGSTR' (msgstr or msgstr[])
  • 'MSGSTR_ARR' (msgstr_arg)

Type: string

File

core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 35

Class

PoStreamReader
Implements Gettext PO stream reader.

Namespace

Drupal\Component\Gettext

Code

protected $context = 'COMMENT';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.