|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I18n
Method Summary | |
---|---|
String |
message(Locale locale,
String key,
String defaultValue,
Object... parameters)
Searches the message of the key for the locale in the list of available bundles. |
Method Detail |
---|
String message(Locale locale, String key, String defaultValue, Object... parameters)
key
for the locale
in the list of available bundles.
defaultText
is returned.
If additional parameters are given (in the objects list), the result is used as a message pattern
to use in a MessageFormat object along with the given parameters.
locale
- the locale to translate intokey
- the key of the pattern to translatedefaultValue
- the default pattern returned when the key is not found in any bundleparameters
- the parameters used to format the message from the translated pattern.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |