public static boolean validLocale ( final Locale locale ) { for ( final Locale found : Locale . getAvailableLocales ( ) ) { if ( found . equals ( locale ) ) { return true ; } } return false ; }
Verifies if the give locale is in the Java list of known locales .