Package com.evolveum.midpoint.common
Class AvailableLocale
java.lang.Object
com.evolveum.midpoint.common.AvailableLocale
Reads files:
* localization/locale.properties from classpath
* locale.properties from _midpoint.home_
Loads available locales, format of properties is:
.name=
.flag= # used for css of flag
.default=true
e.g.
en.name=English
en.flag=en
en.default=true
where default key is optional, and it's default locale used for midpoint.
If not specified
Locale.getDefault()
is used-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsLocale
(Locale locale) static Locale
getBestMatchingLocale
(Locale target) static Locale
-
Field Details
-
AVAILABLE_LOCALES
-
-
Constructor Details
-
AvailableLocale
public AvailableLocale()
-
-
Method Details
-
containsLocale
-
getBestMatchingLocale
-
getDefaultLocale
-