@Override public String toI18NURI(String uri) { return getI18nContentSupport().toI18NURI(uri); }
protected String localizeURI(String linkStr, Locale locale) { I18nContentSupport i18n = Components.getComponent(I18nContentSupport.class); if (!i18n.getLocales().contains(locale.toString())) { //not supported locale - use current one return i18n.toI18NURI(linkStr); } if (locale.equals(i18n.getDefaultLocale())) { return linkStr; } if (linkStr.startsWith("/")) { return "/" + locale.toString() + linkStr; } return linkStr; } }
cleanedurl = Components.getComponent(I18nContentSupport.class).toI18NURI(cleanedurl); cleanedurl = contextPath + cleanedurl;
out.print(i18nContentSupport.toI18NURI(child.getPath())); out.print(".html\"");
out.print(I18nContentSupportFactory.getI18nSupport().toI18NURI(child.getHandle())); out.print(".html\""); //$NON-NLS-1$
/** * {@inheritDoc} */ @Override public String transform(Link uuidLink) { String linkStr; if (useURI2RepositoryMapping) { linkStr = getURI2RepositoryManager().getURI(uuidLink); } else { linkStr = getURI2RepositoryManager().getDefaultMapping().getURI(uuidLink); } linkStr += getURISuffix(uuidLink); if (useI18N) { linkStr = Components.getComponent(I18nContentSupport.class).toI18NURI(linkStr); } linkStr = prefixLink(linkStr); return linkStr; }