public class MessageTranslator
extends java.lang.Object
| Constructor and Description |
|---|
MessageTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
translateError(java.lang.String messageKey,
java.lang.Object... arguments)
Translate the input error message key and replace the placeholders inside
the translation with the values from arguments.
|
static java.lang.String |
translateLog(java.lang.String messageKey,
java.lang.Object... arguments)
Translate the input log message key and replace the placeholders inside the
translation with the values from arguments.
|
public static java.lang.String translateError(java.lang.String messageKey,
java.lang.Object... arguments)
messageKey - the message keyarguments - the argumentspublic static java.lang.String translateLog(java.lang.String messageKey,
java.lang.Object... arguments)
messageKey - the message keyarguments - the arguments