Package org.apache.myfaces.util
Class LocaleUtils
java.lang.Object
org.apache.myfaces.util.LocaleUtils
-
Method Summary
-
Method Details
-
toLocale
Converts a locale string toLocale
class. Accepts both '_' and '-' as separators for locale components.- Parameters:
localeString
- string representation of a locale- Returns:
- Locale instance, compatible with the string representation
-
converterTagLocaleFromString
Convert locale string used by converter tags to locale.- Parameters:
name
- name of the locale- Returns:
- locale specified by the given String
-