The lang (context)
The messages API
Translates the first defined message.
Translates the first defined message.
Uses java.text.MessageFormat
internally to format the message.
the message key
the message arguments
the formatted message or a default rendering if the key wasn’t defined
Translates a message.
Translates a message.
Uses java.text.MessageFormat
internally to format the message.
the message key
the message arguments
the formatted message or a default rendering if the key wasn’t defined
Check if a message key is defined.
Check if a message key is defined.
the message key
a boolean
The lang (context)
The lang (context)
Every Messages is also a MessagesProvider.
Every Messages is also a MessagesProvider.
the messages itself.
The messages API
Translates a message.
Translates a message.
Uses java.text.MessageFormat
internally to format the message.
the message key
the message arguments
the formatted message, if this key was defined
Provides messages for a particular language.
This intended for use to carry both the messages and the current language, particularly useful in templates so that both can be captured by one parameter.
The lang (context)
The messages API