The lang (context)
The messages
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 messages
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