com.gisgraphy.service
Interface IInternationalisationService
- All Known Implementing Classes:
- InternationalisationService
public interface IInternationalisationService
allow L10N and I18N
- Author:
- David Masclet
setLocale
void setLocale(Locale locale)
- set the locale, if not return the default JVM one.
- Parameters:
locale
- the locale to set
getLocale
Locale getLocale()
- Returns:
- the current locale
getString
String getString(String key)
- Parameters:
key
- the key in the bundle
- Returns:
- the localized string or the key if not found
getString
String getString(String key,
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 © 2012. All Rights Reserved.