com.liferay.portal.kernel.util
Class LocaleUtil
java.lang.Object
com.liferay.portal.kernel.util.LocaleUtil
public class LocaleUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
equals
public static boolean equals(Locale locale1,
Locale locale2)
fromLanguageId
public static Locale fromLanguageId(String languageId)
fromLanguageId
public static Locale fromLanguageId(String languageId,
boolean validate)
fromLanguageIds
public static Locale[] fromLanguageIds(List<String> languageIds)
fromLanguageIds
public static Locale[] fromLanguageIds(String[] languageIds)
getDefault
public static Locale getDefault()
getInstance
public static LocaleUtil getInstance()
getISOLanguages
public static Map<String,String> getISOLanguages(Locale locale)
getLongDisplayName
public static String getLongDisplayName(Locale locale,
Set<String> duplicateLanguages)
getMostRelevantLocale
public static Locale getMostRelevantLocale()
getShortDisplayName
public static String getShortDisplayName(Locale locale,
Set<String> duplicateLanguages)
setDefault
public static void setDefault(String userLanguage,
String userCountry,
String userVariant)
toLanguageId
public static String toLanguageId(Locale locale)
toLanguageIds
public static String[] toLanguageIds(Locale[] locales)
toW3cLanguageId
public static String toW3cLanguageId(Locale locale)
toW3cLanguageId
public static String toW3cLanguageId(String languageId)
toW3cLanguageIds
public static String[] toW3cLanguageIds(Locale[] locales)
toW3cLanguageIds
public static String[] toW3cLanguageIds(String[] languageIds)