Class BwLocale

java.lang.Object
org.bedework.calfacade.locale.BwLocale

public class BwLocale extends Object
Make the current locale for bedework available.
Author:
Mike Douglass
  • Constructor Details

    • BwLocale

      public BwLocale()
  • Method Details

    • setLocale

      public static void setLocale(Locale val)
      Parameters:
      val -
    • getLocale

      public static Locale getLocale()
      Will return value as set or jvm default
      Returns:
      Locale
    • setCurrentLocale

      public void setCurrentLocale(Locale val)
      Parameters:
      val -
    • getCurrentLocale

      public Locale getCurrentLocale()
      Will return value as set or jvm default
      Returns:
      Locale
    • getLocales

      public static BwLocale getLocales()
      Returns:
      BwLocale object
    • matchLocales

      public static Locale matchLocales(Collection<Locale> locales, Locale locale)
      See if we can find a locale in the list that matches the given locale. We return either an exact match or the first match where the languages are equal.
      Parameters:
      locales -
      locale -
      Returns:
      Locale
    • getLang

      public static String getLang()
      Get th elanguage from the current locale
      Returns:
      Language String