Gettext loader.

package Default
inherited_from \Zend\I18n\Translator\Loader\AbstractFileLoader

 Methods

load(): defined by FileLoaderInterface.

load(string $locale, string $filename) : \Zend\I18n\Translator\TextDomain
see

Parameters

$locale

string

$filename

string

Exceptions

\Zend\I18n\Exception\InvalidArgumentException

Returns

\Zend\I18n\Translator\TextDomain

Indicate whether or not to use the include_path to resolve translation files

setUseIncludePath(boolean $flag = true) : \Zend\I18n\Translator\Loader\Gettext
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$flag

boolean

Returns

\Zend\I18n\Translator\Loader\Gettext

Are we using the include_path to resolve translation files?

useIncludePath() : boolean
Inherited

Returns

boolean

Read a single integer from the current file.

readInteger() : integer

Returns

integer

Read an integer from the current file.

readIntegerList(integer $num) : integer

Parameters

$num

integer

Returns

integer

Resolve a translation file

resolveFile(string $filename) : string | false
Inherited

Checks if the file exists and is readable, returning a boolean false if not; if the "useIncludePath" flag is enabled, it will attempt to resolve the file from the include_path if the file does not exist on the current working path.

Parameters

$filename

string

Returns

stringfalse

Resolve a translation file via the include_path

resolveViaIncludePath(string $filename) : string | false
Inherited

Parameters

$filename

string

Returns

stringfalse

 Properties

 

Current file pointer.

$file : resource

Default

 

Whether the current file is little endian.

$littleEndian : boolean

Default

 

Whether or not to consult the include_path when locating files

$useIncludePath : boolean

Default

false