$entry
$entry : array
A special PoEntry that represents the header of a GNU gettext style PO or POT file.
The header is the first entry of a PO file. It has an empty string as the "msgid" value, and a set of structured strings compose the "msgstr" value. PoHeader exposes these structured strings so that the individual values can be fetched or set by name.
$entry : array
addQuotedAtPosition(string $type, int $position, string $value) : void
add a quoted value to the nested array 'type' in the entry
This is mainly useful for translated plurals. Since any plural msgstr can have continuation lines, the message is stored as an array of arrays.
string | $type | PoToken constant |
int | $position | array position to store |
string | $value | value to store |
formatQuotedString(string|string[]|null $value, bool $bare = false) : string
format a string for output by escaping control and double quote characters, then surrounding with double quotes
string|string[]|null | $value | string to prepare |
bool | $bare | true for bare output, default false adds leading space and trailing newline |