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

        

Reply via email to