public class InternationalisationService extends Object implements IInternationalisationService
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
InternationalisationService() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale() |
String |
getString(String key) |
String |
getString(String key,
Object[] params) |
void |
setLocale(Locale locale)
set the locale, if not return the default JVM one.
|
void |
setResourceBundle(org.springframework.context.support.ReloadableResourceBundleMessageSource resourceBundle) |
public String getString(String key)
getString in interface IInternationalisationServicekey - the key in the bundlepublic String getString(String key, Object[] params)
getString in interface IInternationalisationServicekey - the key in the bundleparams - the param to inject in localised messagepublic Locale getLocale()
getLocale in interface IInternationalisationServicepublic void setLocale(Locale locale)
IInternationalisationServicesetLocale in interface IInternationalisationServicelocale - the locale to setpublic void setResourceBundle(org.springframework.context.support.ReloadableResourceBundleMessageSource resourceBundle)
Copyright © 2015. All rights reserved.