|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.i18n.Messages
public class Messages
High-level internationalisation API.
Constructor Summary | |
---|---|
Messages()
|
Method Summary | |
---|---|
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.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Messages()
Method Detail |
---|
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 arguments
public static java.lang.String get(java.lang.String key, java.lang.Object... args)
key
- the message keyargs
- the message arguments
public static java.lang.Boolean isDefined(play.api.i18n.Lang lang, java.lang.String key)
lang
- the message langkey
- the message key
public static java.lang.Boolean isDefined(java.lang.String key)
key
- the message key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |