public final class SakaiLocaleServiceProviderUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsKey(String key,
Locale locale)
Determines whether the given
key is contained in the resource
bundle. |
static Locale[] |
getAvailableLocales()
Returns an array of all locales for the resource bundles.
|
static char |
getChar(String key,
Locale locale)
Returns a
char value for the given key from the
resource bundle. |
static String |
getString(String key,
Locale locale)
Returns a string for the given
key from the resource bundle. |
static boolean |
isAvailableLocale(Locale locale)
Determines whether the given
locale is available
for the resource bundles. |
public static Locale[] getAvailableLocales()
public static boolean isAvailableLocale(Locale locale)
locale is available
for the resource bundles.locale - possible locale.true if the given locale is available for the
resource bundles; false otherwise.public static String getString(String key, Locale locale)
key from the resource bundle.key - the key for the desired string.locale - the desired locale.key and locale.public static char getChar(String key, Locale locale)
char value for the given key from the
resource bundle.key - the key for the desired char value.locale - the desired locale.char value for the given key and
locale.Copyright © 2003–2019 Sakai Project. All rights reserved.