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 |
fromLanguageId
public static Locale fromLanguageId(String languageId)
fromLanguageIds
public static Locale[] fromLanguageIds(String[] languageIds)
getDefault
public static Locale getDefault()
getInstance
public static LocaleUtil getInstance()
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)
_setDefault
public void _setDefault(String userLanguage,
String userCountry,
String userVariant)