code: public static List<String> getAvailableLocaleSuffixes(
  			String messageBundles, String fileSuffix,
  			GrailsServletContextResourceReader rsReader) {
  		List<String> availableLocaleSuffixes = new ArrayList<String>();
  		Locale[] availableLocales = Locale.getAvailableLocales();
  
  		String[] msgBundleArray = messageBundles
  				.split(RESOURCE_BUNDLE_SEPARATOR);
  
  		for (String messageBundle : msgBundleArray) {
  
  			addSuffixIfAvailable(messageBundle, availableLocaleSuffixes, null,
  					fileSuffix, rsReader);
  
  			for (int i = 0; i < availableLocales.length; i++) {
  				Locale locale = availableLocales[i];
  				addSuffixIfAvailable(messageBundle, availableLocaleSuffixes,
  						locale, fileSuffix, rsReader);
  			}
  		}
  		return availableLocaleSuffixes;
  	}
docs: Returns the list of available locale suffixes for a message resource
  bundle
  
  @param messageBundle
  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