ZMObject
└─ZMLocales
public class ZMLocales
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| ZMLocale | getLocale(boolean reload, string locale) Get the locale to be used. |
| array | Get locales. |
| void | init(string locale) Init locale. |
| static void | instance() Get instance. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public ZMLocale getLocale(boolean reload, string locale)
Get the locale to be used.
The reload flag is mainly to allow applications to switch to a different locale implementation at a later stage during startup.
false.null.public array getLocalesList()
Get locales.
public void init(string locale)
Init locale.
public static void instance()
Get instance.
Locale service.
Delegates translations to an instance of
ZMLocale.The implementation used can be configured via the setting 'zenmagick.core.locales.provider'. If none is configured, a default echo implementation will be used.