public static String getLocalizedBundleName(String bundleName, String localeKey) {

		String newName = bundleName;
		int idxSeparator = bundleName.lastIndexOf('.');
		if (StringUtils.isNotEmpty(localeKey) && idxSeparator != -1) {
			newName = bundleName.substring(0, idxSeparator);
			newName += '_' + localeKey;
			newName += bundleName.substring(idxSeparator);
		}

		return newName;
	}
public static String getLocalizedBundleName ( String bundleName , String localeKey ) { String newName = bundleName ; int idxSeparator = bundleName . lastIndexOf ( '.' ) ; if ( StringUtils . isNotEmpty ( localeKey ) && idxSeparator != - 1 ) { newName = bundleName . substring ( 0 , idxSeparator ) ; newName += '_' + localeKey ; newName += bundleName . substring ( idxSeparator ) ; } return newName ; }
Returns the localized bundle name

@param bundleName
the bundle name
@param localeKey
the locale key
@return the localized bundle name