public static String getVariantBundleName ( String bundleName , String variantKey , boolean iGeneratedResource ) { String newName = bundleName ; if ( StringUtils . isNotEmpty ( variantKey ) ) { int idxSeparator = bundleName . lastIndexOf ( ' ' ) ; if ( ! iGeneratedResource && idxSeparator != - 1 ) { newName = bundleName . substring ( 0 , idxSeparator ) ; newName += JawrConstant . VARIANT_SEPARATOR_CHAR + variantKey ; newName += bundleName . substring ( idxSeparator ) ; } else { newName += JawrConstant . VARIANT_SEPARATOR_CHAR + variantKey ; } } return newName ; }
Get the bundle name taking in account the variant key