public static class II18nMessageResolver.DefaultImpl extends Object implements II18nMessageResolver
II18nMessageResolver.DefaultImpl| Modifier and Type | Field and Description |
|---|---|
static II18nMessageResolver |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage(ITemplate template,
String key,
Object... args)
Return i18n message of a given key and args, use the locale info from the template specified.
|
public static II18nMessageResolver INSTANCE
public String getMessage(ITemplate template, String key, Object... args)
II18nMessageResolverReturn i18n message of a given key and args, use the locale info from the template specified.
if null template passed in then it will try to guess from the current engine via
RythmEngine.get()
getMessage in interface II18nMessageResolverargs - the format arguments. If the first argument is of type Locale then it will be used to specify
the locale of the processing, and the rest elements are used as format argumentsCopyright © 2015. All Rights Reserved.