$entry
$entry : array
PoEntry represent a single entry in a GNU gettext style PO or POT file.
An entry consists of an associative array of values, indexed by type. These types are based on PO file line recognition tokens from PoTokens.
$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 |