Package org.apache.tiles.request.locale
Class LocaleUtil
java.lang.Object
org.apache.tiles.request.locale.LocaleUtil
Utilities for locale manipulation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Locale
getParentLocale
(Locale locale) Returns the "parent" locale of a given locale.
-
Method Details
-
getParentLocale
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.
-