public class I10nUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR_MESSAGE_BUNDLE_NAME |
static String |
DEFAULT_LOGGING_MESSAGE_BUNDLE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLocalizedMessage(ResourceBundle bundle,
String key,
Object... args)
Returns a formatted, localized message according to the specified resource bundle and key.
|
static String |
getLocalizedMessage(String bundleName,
String key,
Object... args)
Returns a formatted, localized message according to the specified resource bundle and key.
|
public static final String DEFAULT_ERROR_MESSAGE_BUNDLE_NAME
public static final String DEFAULT_LOGGING_MESSAGE_BUNDLE_NAME
public static String getLocalizedMessage(String bundleName, String key, Object... args)
bundleName - the name of the resource bundle where the message format should bekey - the key of the message formatargs - the args of the message formatpublic static String getLocalizedMessage(ResourceBundle bundle, String key, Object... args)
bundle - the resource bundle where the message format should bekey - the key of the message formatargs - the args of the message formatCopyright © 2018 CrafterCMS. All rights reserved.