log.debug("setting tparam \"" + pName + "\"=\"" + pValue
+ "\".");
tst.setParameter(pName, pValue);
}
VersionsManager versionsManager = VersionsManager.getInstance();
Version[] versions = versionsManager.getVersions();
for (Version version : versions) {
String paramName = "version-" + version.getFname();
tst.setParameter(paramName, version.dottedTriple());
}
// the uP_productAndVersion stylesheet parameter is deprecated
// instead use the more generic "version-UP_VERSION" generated from the
// framework's functional name when all versions are pulled immediately
// above.
Version uPortalVersion = versionsManager.getVersion(IPermission.PORTAL_FRAMEWORK);
tst.setParameter("uP_productAndVersion", "uPortal " + uPortalVersion.dottedTriple());
final Locale[] locales = localeManager.getLocales();
if (locales != null && locales.length > 0 && locales[0] != null) {
tst.setParameter("USER_LANG", locales[0].toString().replace('_', '-'));