Class AvailableLocale

java.lang.Object
com.evolveum.midpoint.common.AvailableLocale

public class AvailableLocale extends Object
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
  • Field Details

  • Constructor Details

    • AvailableLocale

      public AvailableLocale()
  • Method Details

    • containsLocale

      public static boolean containsLocale(Locale locale)
    • getBestMatchingLocale

      public static Locale getBestMatchingLocale(Locale target)
    • getDefaultLocale

      public static Locale getDefaultLocale()