Package com.liferay.portal.kernel.util
Class LocaleUtil_IW
Object
com.liferay.portal.kernel.util.LocaleUtil_IW
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fromLanguageId
(String languageId) fromLanguageId
(String languageId, boolean validate) fromLanguageId
(String languageId, boolean validate, boolean useDefault) Locale[]
fromLanguageIds
(String[] languageIds) Locale[]
fromLanguageIds
(List<String> languageIds) static LocaleUtil_IW
getISOLanguages
(Locale locale) getLocaleDisplayName
(Locale displayLocale, Locale locale) getLongDisplayName
(Locale locale, Set<String> duplicateLanguages) getShortDisplayName
(Locale locale, Set<String> duplicateLanguages) void
setDefault
(String userLanguage, String userCountry, String userVariant) toBCP47LangTag
(Locale locale) toBCP47LanguageId
(String languageId) toBCP47LanguageId
(Locale locale) String[]
toBCP47LanguageIds
(String[] languageIds) String[]
toBCP47LanguageIds
(Locale[] locales) String[]
toDisplayNames
(Collection<Locale> locales, Locale locale) toLanguageId
(Locale locale) String[]
toLanguageIds
(Collection<Locale> locales) String[]
toLanguageIds
(Locale[] locales) toW3cLanguageId
(String languageId) toW3cLanguageId
(Locale locale) String[]
toW3cLanguageIds
(String[] languageIds) String[]
toW3cLanguageIds
(Locale[] locales)
-
Method Details
-
getInstance
-
equals
-
fromLanguageId
-
fromLanguageId
-
fromLanguageId
-
fromLanguageIds
-
fromLanguageIds
-
getDefault
-
getISOLanguages
-
getLocaleDisplayName
-
getLongDisplayName
-
getMostRelevantLocale
-
getShortDisplayName
-
getSiteDefault
-
setDefault
-
toBCP47LangTag
-
toBCP47LanguageId
-
toBCP47LanguageId
-
toBCP47LanguageIds
-
toBCP47LanguageIds
-
toDisplayNames
-
toLanguageId
-
toLanguageIds
-
toLanguageIds
-
toMap
-
toW3cLanguageId
-
toW3cLanguageId
-
toW3cLanguageIds
-
toW3cLanguageIds
-