public static List<String> getAvailableLocaleSuffixesForBundle(
			String messageBundlePath, String fileSuffix,
			GrailsServletContextResourceReader rsReader) {

		int idxNameSpace = messageBundlePath.indexOf("(");
		int idxFilter = messageBundlePath.indexOf("[");
		int idx = -1;
		if (idxNameSpace != -1 && idxFilter != -1) {
			idx = Math.min(idxNameSpace, idxFilter);
		} else if (idxNameSpace != -1 && idxFilter == -1) {
			idx = idxNameSpace;
		} else if (idxNameSpace == -1 && idxFilter != -1) {
			idx = idxFilter;
		}

		String messageBundle = null;
		if (idx > 0) {
			messageBundle = messageBundlePath.substring(0, idx);
		} else {
			messageBundle = messageBundlePath;
		}
		return getAvailableLocaleSuffixes(messageBundle, fileSuffix, rsReader);
	}
public static List < String > getAvailableLocaleSuffixesForBundle ( String messageBundlePath , String fileSuffix , GrailsServletContextResourceReader rsReader ) { int idxNameSpace = messageBundlePath . indexOf ( "(" ) ; int idxFilter = messageBundlePath . indexOf ( "[" ) ; int idx = - 1 ; if ( idxNameSpace != - 1 && idxFilter != - 1 ) { idx = Math . min ( idxNameSpace , idxFilter ) ; } else if ( idxNameSpace != - 1 && idxFilter == - 1 ) { idx = idxNameSpace ; } else if ( idxNameSpace == - 1 && idxFilter != - 1 ) { idx = idxFilter ; } String messageBundle = null ; if ( idx > 0 ) { messageBundle = messageBundlePath . substring ( 0 , idx ) ; } else { messageBundle = messageBundlePath ; } return getAvailableLocaleSuffixes ( messageBundle , fileSuffix , rsReader ) ; }
Returns the list of available locale suffixes for a message resource
bundle

@param messageBundlePath
the resource bundle path
@param fileSuffix
the file suffix
@param rsReader
the grails servlet context resource reader
@return the list of available locale suffixes for a message resource
bundle