public static StringManager getManager ( String packageName , Enumeration < Locale > requestedLocales ) { while ( requestedLocales . hasMoreElements ( ) ) { Locale locale = requestedLocales . nextElement ( ) ; StringManager result = getManager ( packageName , locale ) ; if ( result . getLocale ( ) . equals ( locale ) ) { return result ; } } // Return the default return getManager ( packageName ) ; }
Retrieve the StringManager for a list of Locales . The first StringManager found will be returned .