You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2011/08/16 12:48:27 UTC
[jira] [Resolved] (SLING-2180) Provide a resource bundle for all
requests
[ https://issues.apache.org/jira/browse/SLING-2180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2180.
-------------------------------------
Resolution: Fixed
Implemented in revision 1158191
> Provide a resource bundle for all requests
> ------------------------------------------
>
> Key: SLING-2180
> URL: https://issues.apache.org/jira/browse/SLING-2180
> Project: Sling
> Issue Type: New Feature
> Components: Extensions
> Affects Versions: I18n 2.1.2
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: i18n 2.2.0
>
>
> Currently only if a request is served by the Sling Main Servlet, the resource bundle provider and the i18n filter is called.
> However, if the request is not directly served by Sling we could still support i18n:
> We define a new interface RequestLocaleResolver which just takes a HttpServletRequest - this service can get the resource resolver from the request attribute (see authentication support). As the HttpServletRequest has no method to get a resource bundle we store the resource bundle as a request attribute.
> To reduce the overhead, we only create the bundle on request, so only if the request attribute is queried we lazily create the resource bundle
> If a RequestLocaleResolver is available it has precedence of a LocaleResolver - in addition we deprecate the LocaleResolver
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira