public final class ProwideLocale
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
SUPPORTED_LANGS |
Constructor and Description |
---|
ProwideLocale() |
Modifier and Type | Method and Description |
---|---|
static java.util.ResourceBundle |
getBundle(java.lang.Class<?> clazz)
Safe get locale, checking if current locale is supported Same as
getBundle(clazz, Locale.getDefault())) |
static java.util.ResourceBundle |
getBundle(java.lang.Class<?> clazz,
java.util.Locale locale)
Get requested bundle or ENGLISH if missing resource for the given locale.
|
static java.util.ResourceBundle |
getBundle(java.lang.String resource)
Safe get locale, checking if current locale is supported Same as
getBundle(resource, Locale.getDefault())) |
static java.util.ResourceBundle |
getBundle(java.lang.String resource,
java.util.Locale locale)
Get requested bundle or ENGLISH if missing resource for the given locale.
|
public static java.util.ResourceBundle getBundle(java.lang.Class<?> clazz, java.util.Locale locale)
clazz
- the class for which the resource bundle is loadedlocale
- a localepublic static java.util.ResourceBundle getBundle(java.lang.Class<?> clazz)
getBundle(clazz, Locale.getDefault()))
clazz
- class object for lookup of the resource bundlegetBundle(Class, Locale)
public static java.util.ResourceBundle getBundle(java.lang.String resource, java.util.Locale locale)
resource
- the name of the resource bundle to loadedlocale
- a localepublic static java.util.ResourceBundle getBundle(java.lang.String resource)
getBundle(resource, Locale.getDefault()))
resource
- name of the resource bundle, a fully qualified class namegetBundle(String, Locale)