/** * <p>A locale based lookup sequence is build using the supplied {@link Locale} and (if it is * different) the default {@link Locale}. * <ol><li>Lookup <{@code}descid><{@code}language_country_variant>.properties</li> * <li>Lookup <{@code}descid><{@code}language_country>.properties</li> * <li>Lookup <{@code}descid><{@code}language>.properties</li> * </ol> * The repeat but with the default {@link Locale}. Finally lookup <descid>.properties * </p> * @param description The current {@link WebScript} {@link Description}. * @param locale The requested {@link Locale}. * @return LinkedHashSet<String> */ private LinkedHashSet<String> buildLocalePathList(Description description, Locale locale) { LinkedHashSet<String> paths = buildLocalePathList(description.getId(), locale); return paths; }
/** * <p>A locale based lookup sequence is build using the supplied {@link Locale} and (if it is * different) the default {@link Locale}. * <ol><li>Lookup <{@code}descid><{@code}language_country_variant>.properties</li> * <li>Lookup <{@code}descid><{@code}language_country>.properties</li> * <li>Lookup <{@code}descid><{@code}language>.properties</li> * </ol> * The repeat but with the default {@link Locale}. Finally lookup <descid>.properties * </p> * @param description The current {@link WebScript} {@link Description}. * @param locale The requested {@link Locale}. * @return */ private LinkedHashSet<String> buildLocalePathList(Description description, Locale locale) { LinkedHashSet<String> paths = buildLocalePathList(description.getId(), locale); return paths; }
/** * <p>A locale based lookup sequence is build using the supplied {@link Locale} and (if it is * different) the default {@link Locale}. * <ol><li>Lookup <{@code}descid><{@code}language_country_variant>.properties</li> * <li>Lookup <{@code}descid><{@code}language_country>.properties</li> * <li>Lookup <{@code}descid><{@code}language>.properties</li> * </ol> * The repeat but with the default {@link Locale}. Finally lookup <descid>.properties * </p> * @param description The current {@link WebScript} {@link Description}. * @param locale The requested {@link Locale}. * @return LinkedHashSet<String> */ private LinkedHashSet<String> buildLocalePathList(Description description, Locale locale) { LinkedHashSet<String> paths = buildLocalePathList(description.getId(), locale); return paths; }
Set<String> paths = buildLocalePathList(getDescription(), locale); Object[] arrayOfPaths = paths.toArray(); for (int i=arrayOfPaths.length-1; i>=0; i--) Set<String> importPaths = buildLocalePathList(includeBundle, locale); Object[] arrayOfImportPaths = importPaths.toArray(); for (int i=arrayOfImportPaths.length-1; i>=0; i--)
Set<String> paths = buildLocalePathList(getDescription(), locale); Object[] arrayOfPaths = paths.toArray(); for (int i=arrayOfPaths.length-1; i>=0; i--) Set<String> importPaths = buildLocalePathList(includeBundle, locale); Object[] arrayOfImportPaths = importPaths.toArray(); for (int i=arrayOfImportPaths.length-1; i>=0; i--)
Set<String> paths = buildLocalePathList(getDescription(), locale); Object[] arrayOfPaths = paths.toArray(); for (int i=arrayOfPaths.length-1; i>=0; i--) Set<String> importPaths = buildLocalePathList(includeBundle, locale); Object[] arrayOfImportPaths = importPaths.toArray(); for (int i=arrayOfImportPaths.length-1; i>=0; i--)
String suffix = webScriptId.substring(lastSlashIndex(webScriptId)); String prefix = bundlePath.substring(0, lastSlashIndex(bundlePath)); LinkedHashSet<String> paths = buildLocalePathList(prefix + suffix, I18NUtil.getLocale());
String suffix = webScriptId.substring(lastSlashIndex(webScriptId)); String prefix = bundlePath.substring(0, lastSlashIndex(bundlePath)); LinkedHashSet<String> paths = buildLocalePathList(prefix + suffix, I18NUtil.getLocale());
String suffix = webScriptId.substring(lastSlashIndex(webScriptId)); String prefix = bundlePath.substring(0, lastSlashIndex(bundlePath)); LinkedHashSet<String> paths = buildLocalePathList(prefix + suffix, I18NUtil.getLocale());