public class Messages
extends java.lang.Object
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
get(play.api.i18n.Lang lang,
java.util.List<java.lang.String> keys,
java.lang.Object... args)
Translates the first defined message.
|
static java.lang.String |
get(play.api.i18n.Lang lang,
java.lang.String key,
java.lang.Object... args)
Translates a message.
|
static java.lang.String |
get(java.util.List<java.lang.String> keys,
java.lang.Object... args)
Translates the first defined message.
|
static java.lang.String |
get(java.lang.String key,
java.lang.Object... args)
Translates a message.
|
static java.lang.Boolean |
isDefined(play.api.i18n.Lang lang,
java.lang.String key)
Check if a message key is defined.
|
static java.lang.Boolean |
isDefined(java.lang.String key)
Check if a message key is defined.
|
public static java.lang.String get(play.api.i18n.Lang lang, java.lang.String key, java.lang.Object... args)
lang
- the message langkey
- the message keyargs
- the message argumentspublic static java.lang.String get(play.api.i18n.Lang lang, java.util.List<java.lang.String> keys, java.lang.Object... args)
lang
- the message langkeys
- the messages keysargs
- the message argumentspublic static java.lang.String get(java.lang.String key, java.lang.Object... args)
key
- the message keyargs
- the message argumentspublic static java.lang.String get(java.util.List<java.lang.String> keys, java.lang.Object... args)
keys
- the messages keysargs
- the message argumentspublic static java.lang.Boolean isDefined(play.api.i18n.Lang lang, java.lang.String key)
lang
- the message langkey
- the message keypublic static java.lang.Boolean isDefined(java.lang.String key)
key
- the message key