Constructor and Description |
---|
I18nBase() |
Modifier and Type | Method and Description |
---|---|
String |
formatMessage(String theMessage,
Object... theMessageArguments)
Formats the given message, if needed, with the passed in message arguments.
|
Locale |
getLocale() |
boolean |
isWarnAboutMissingMessages() |
void |
setLocale(Locale locale) |
void |
setValidationMessageLanguage(Locale locale)
Loads the corresponding
ResourceBundle for the passed in Locale . |
void |
setWarnAboutMissingMessages(boolean warnAboutMissingMessages) |
public I18nBase()
public String formatMessage(String theMessage, Object... theMessageArguments)
theMessage
- Base message to format.theMessageArguments
- Placeholder arguments, if needed.String
public void setValidationMessageLanguage(Locale locale)
ResourceBundle
for the passed in Locale
.locale
- Locale
to load resources for.public boolean isWarnAboutMissingMessages()
public void setWarnAboutMissingMessages(boolean warnAboutMissingMessages)
Copyright © 2014–2021 Health Level 7. All rights reserved.