public class JetspeedLocale extends Object
| Constructor and Description |
|---|
JetspeedLocale() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertLocaleToString(Locale locale)
Converts Locale to String.
|
static Locale |
convertStringToLocale(String lang)
Converts String to Locale.
|
static LocalizedObject |
getBestLocalizedObject(List<? extends LocalizedObject> list,
Locale locale) |
static Locale |
getDefaultLocale()
According to PLT.21.8.1, the default locale should be English.
|
public static Locale getDefaultLocale()
public static String convertLocaleToString(Locale locale)
locale - public static Locale convertStringToLocale(String lang)
localeString - public static LocalizedObject getBestLocalizedObject(List<? extends LocalizedObject> list, Locale locale)
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.