Zend\I18n\Translator\Loader\Gettext
Gettext loader.
Synopsis
class Gettext
extends AbstractFileLoader
{
- // members
- protected resource $file;
- protected bool $littleEndian;
- // Inherited members from AbstractFileLoader
- protected bool $useIncludePath;
- // methods
- public TextDomain load()
- protected int readInteger()
- protected int readIntegerList()
- // Inherited methods from AbstractFileLoader
- public self setUseIncludePath()
- public bool useIncludePath()
- protected string|false resolveFile()
- protected string|false resolveViaIncludePath()
Hierarchy
Members
protected
- $file
—
resource
Current file pointer. - $littleEndian
—
Zend\I18n\Translator\Loader\bool
Whether the current file is little endian. - $useIncludePath
—
Zend\I18n\Translator\Loader\bool
Whether or not to consult the include_path when locating files
Methods
protected
- readInteger() — Read a single integer from the current file.
- readIntegerList() — Read an integer from the current file.
public
- load() — load(): defined by FileLoaderInterface.
Inherited from Zend\I18n\Translator\Loader\AbstractFileLoader
protected
- resolveFile() — Resolve a translation file
- resolveViaIncludePath() — Resolve a translation file via the include_path
public
- setUseIncludePath() — Indicate whether or not to use the include_path to resolve translation files
- useIncludePath() — Are we using the include_path to resolve translation files?