Gettext
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.
load($locale, $filename)
{@inheritdoc}
private TextDomain
fixPlurals(TextDomain $textDomain, Language $localeInfo)
Fix the plural rules of the translations loaded from a file.