Class LocaleUtil

java.lang.Object
org.apache.tiles.request.locale.LocaleUtil

public final class LocaleUtil extends Object
Utilities for locale manipulation.
  • Method Details

    • getParentLocale

      public static Locale getParentLocale(Locale locale)

      Returns the "parent" locale of a given locale. If the original locale is only language-based, the Locale.ROOT object is returned.

      Parameters:
      locale - The original locale.
      Returns:
      The parent locale.