ZenMagick 0.9.10


org.zenmagick.core.services.locale.provider\ZMYamlLocale
core\services\locale\provider\ZMYamlLocale.php at line 30

Class ZMYamlLocale

ZMObject
└─ZMAbstractLocale
└─ZMYamlLocale

public class ZMYamlLocale
extends ZMAbstractLocale

Locale driven by a single yaml file per language.

Author:
DerManoMann

Method Summary
void

__construct()

Create new instance.

void

addTanslations(array translations)

Add translations.

void

init(mixed locale)

{@inheritDoc}

void

translate(mixed text, mixed context, mixed domain)

{@inheritDoc}

void

translatePlural(mixed single, mixed number, mixed plural, mixed context, mixed domain)

{@inheritDoc}

Methods inherited from org.zenmagick.core.services.locale\ZMAbstractLocale
__construct, getCode, getFormat, getName, init
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

core\services\locale\provider\ZMYamlLocale.php at line 37

__construct

public void __construct()

Create new instance.


core\services\locale\provider\ZMYamlLocale.php at line 55

addTanslations

public void addTanslations(array translations)

Add translations.

Parameters:
translations - Map of translations.

core\services\locale\provider\ZMYamlLocale.php at line 62

init

public void init(mixed locale)

{@inheritDoc}


core\services\locale\provider\ZMYamlLocale.php at line 71

translate

public void translate(mixed text, mixed context, mixed domain)


core\services\locale\provider\ZMYamlLocale.php at line 82

translatePlural

public void translatePlural(mixed single, mixed number, mixed plural, mixed context, mixed domain)


ZenMagick 0.9.10