I18N: Apply ResourceResolver.getSearchPath() to prioritized messages with the 
same key
--------------------------------------------------------------------------------------

                 Key: SLING-364
                 URL: https://issues.apache.org/jira/browse/SLING-364
             Project: Sling
          Issue Type: New Feature
          Components: Core
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: 2.0.0


>From http://markmail.org/message/6ikv4wfabqtnmajk

I would like to propose that the ResourceResolver.getSearchPath() is applied to 
resolve key collisions. In the above example of /apps/myapp/i18n/de/key and 
/libs/otherapp/i18n/de/label both providing a "Label" resource we can select 
which resource to actually use by applying the search path and using that entry 
whose path starts with the earlier search path.

Given the search path would be [ "/apps", "/libs" ], the "Label" resource from 
/apps/myapp/i18n/de/key because the path /apps comes before /libs (for 
/libs/otherapp/i18n/de/label).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to