Liferay 6.0.5

com.liferay.portal.kernel.util
Class LocaleUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.LocaleUtil

public class LocaleUtil
extends Object


Method Summary
 void _setDefault(String userLanguage, String userCountry, String userVariant)
           
static Locale fromLanguageId(String languageId)
           
static Locale[] fromLanguageIds(String[] languageIds)
           
static Locale getDefault()
           
static LocaleUtil getInstance()
           
static void setDefault(String userLanguage, String userCountry, String userVariant)
           
static String toLanguageId(Locale locale)
           
static String[] toLanguageIds(Locale[] locales)
           
static String toW3cLanguageId(Locale locale)
           
static String toW3cLanguageId(String languageId)
           
static String[] toW3cLanguageIds(Locale[] locales)
           
static String[] toW3cLanguageIds(String[] languageIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

Liferay 6.0.5