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