ZMObject
└─ZMAbstractLocale
└─ZMYamlLocale
public class ZMYamlLocale
extends ZMAbstractLocale
| Method Summary | |
|---|---|
| void | 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 | |
public void __construct()
Create new instance.
public void addTanslations(array translations)
Add translations.
public void init(mixed locale)
{@inheritDoc}
public void translate(mixed text, mixed context, mixed domain)
public void translatePlural(mixed single, mixed number, mixed plural, mixed context, mixed domain)
Locale driven by a single yaml file per language.