Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Won't Do
-
4.2.3
-
None
-
None
-
None
-
Turing Sprint 168, Turing Sprint 169
Description
want the business users to be able to set the global resource bundle(s) for a channel through the channel setting dialog, so that they can configure different labels, for example, for the copyright notice at the bottoms of all the page.
When I see the LocalizationValve of HST-2, it's reading resource bundle id properties from sitemapitem or mount configuration:
if (requestContext.getResolvedSiteMapItem() != null) { bundleIds = requestContext.getResolvedSiteMapItem().getHstSiteMapItem().getResourceBundleIds(); } else { bundleIds = requestContext.getResolvedMount().getMount().getDefaultResourceBundleIds(); }
Would be an idea to improve that to read channel settings as well.
For example,
String bundleIds = (String) requestContext.getResolvedMount().getMount().getChannelInfo().getProperties().get(RESOURCE_BUNDLE_ID);
Channel should be the first location than others to look into If set.
Attachments
Issue Links
- is a backport of
-
HSTTWO-4106 Resource bundle ID(s) configuration as channel info parameter to the bundle fallback mechanism in LocalizationValve
- Closed