public class I18n
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
I18n.BundleType
This enum is a type safe way to control what resource bundle to load from
|
Modifier | Constructor and Description |
---|---|
protected |
I18n(I18n.BundleType bundleType,
java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getLocale() |
java.util.ResourceBundle |
getResourceBundle() |
static I18n |
i18n(I18n.BundleType bundleType,
java.util.Locale locale) |
java.lang.String |
msg(java.lang.String msgKey,
java.util.List<java.lang.Object> msgArgs)
Creates an I18N message using the key and arguments
|
java.lang.String |
msg(java.lang.String msgKey,
java.lang.Object... msgArgs)
Creates an I18N message using the key and arguments
|
protected I18n(I18n.BundleType bundleType, java.util.Locale locale)
public java.util.Locale getLocale()
public java.util.ResourceBundle getResourceBundle()
public static I18n i18n(I18n.BundleType bundleType, java.util.Locale locale)
public java.lang.String msg(java.lang.String msgKey, java.lang.Object... msgArgs)
msgKey
- the key in the underlying message bundlemsgArgs
- the message argumentspublic java.lang.String msg(java.lang.String msgKey, java.util.List<java.lang.Object> msgArgs)
msgKey
- the key in the underlying message bundlemsgArgs
- the message arguments