com.gisgraphy.service
Interface IInternationalisationService
- All Known Implementing Classes:
- InternationalisationService
public interface IInternationalisationService
allow L10N and I18N
- Author:
- David Masclet
Method Summary |
java.util.Locale |
getLocale()
|
java.lang.String |
getString(java.lang.String key)
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] params)
|
void |
setLocale(java.util.Locale locale)
set the locale, if not return the default JVM one. |
setLocale
void setLocale(java.util.Locale locale)
- set the locale, if not return the default JVM one.
- Parameters:
locale
- the locale to set
getLocale
java.util.Locale getLocale()
- Returns:
- the current locale
getString
java.lang.String getString(java.lang.String key)
- Parameters:
key
- the key in the bundle
- Returns:
- the localized string or the key if not found
getString
java.lang.String getString(java.lang.String key,
java.lang.Object[] params)
- Parameters:
key
- the key in the bundleparams
- the param to inject in localised message
- Returns:
- the localized string or the key if not found
Copyright © 2010. All Rights Reserved.