class Gettext extends Gettext (View source)

Properties

private string $webrootDirectory

Tthe absolute path of the web root.

Methods

__construct(string $webrootDirectory)

Initialize the instance.

load($locale, $filename)

{@inheritdoc}

TextDomain
fixPlurals(TextDomain $textDomain, Language $localeInfo)

Fix the plural rules of the translations loaded from a file.

Details

__construct(string $webrootDirectory)

Initialize the instance.

Parameters

string $webrootDirectory

the absolute path of the web root

load($locale, $filename)

{@inheritdoc}

Parameters

$locale
$filename

See also

\Laminas\I18n\Translator\Loader\Gettext::load()

private TextDomain fixPlurals(TextDomain $textDomain, Language $localeInfo)

Fix the plural rules of the translations loaded from a file.

Parameters

TextDomain $textDomain
Language $localeInfo

Return Value

TextDomain