final class MoParser (View source)

Constants

ERROR_NONE

None error.

ERROR_DOES_NOT_EXIST

File does not exist.

ERROR_BAD_MAGIC

File has bad magic number.

ERROR_READING

Error while reading file, probably too short.

MAGIC_BE

Big endian mo file magic bytes.

MAGIC_LE

Little endian mo file magic bytes.

Properties

int $error

Parse error code (0 if no error).

Methods

__construct(string|null $filename = null)

No description

void
parseIntoCache(CacheInterface $cache)

Parses .mo file and stores results to $cache

Details

__construct(string|null $filename = null)

No description

Parameters

string|null $filename

void parseIntoCache(CacheInterface $cache)

Parses .mo file and stores results to $cache

Parameters

CacheInterface $cache

Return Value

void