[jira] [Commented] (SLING-2576) I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale
[ https://issues.apache.org/jira/browse/SLING-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13444857#comment-13444857 ] Alexander Klimetschek commented on SLING-2576: -- It works now. Although I would really prefer simpler code (map/array handling in a generic utility and no reverse index-based iteration in multiple places). I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale - Key: SLING-2576 URL: https://issues.apache.org/jira/browse/SLING-2576 Project: Sling Issue Type: Improvement Components: Extensions Affects Versions: i18n 2.2.2 Reporter: Alexander Klimetschek Assignee: Carsten Ziegeler Attachments: SLING-2576.patch As discussed on the list: http://markmail.org/message/7dsrqaxw6dkkshwx it is currently not possible to provide custom resource bundles as there is only one (JCR) ResourceBundleProvider. It would be good to allow multiple and go through them until the first one returns a non-null value, asking the ones with a higher service ranking first. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2576) I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale
[ https://issues.apache.org/jira/browse/SLING-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13443001#comment-13443001 ] Carsten Ziegeler commented on SLING-2576: - I've committed a different version which does not require SLING-2575, please cross-check I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale - Key: SLING-2576 URL: https://issues.apache.org/jira/browse/SLING-2576 Project: Sling Issue Type: Improvement Components: Extensions Affects Versions: i18n 2.2.2 Reporter: Alexander Klimetschek Assignee: Carsten Ziegeler Attachments: SLING-2576.patch As discussed on the list: http://markmail.org/message/7dsrqaxw6dkkshwx it is currently not possible to provide custom resource bundles as there is only one (JCR) ResourceBundleProvider. It would be good to allow multiple and go through them until the first one returns a non-null value, asking the ones with a higher service ranking first. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2576) I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale
[ https://issues.apache.org/jira/browse/SLING-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13443091#comment-13443091 ] Alexander Klimetschek commented on SLING-2576: -- The order is wrong (reversed) - providers with a higher service ranking need to come first in the list, so that they are asked first. I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale - Key: SLING-2576 URL: https://issues.apache.org/jira/browse/SLING-2576 Project: Sling Issue Type: Improvement Components: Extensions Affects Versions: i18n 2.2.2 Reporter: Alexander Klimetschek Assignee: Carsten Ziegeler Attachments: SLING-2576.patch As discussed on the list: http://markmail.org/message/7dsrqaxw6dkkshwx it is currently not possible to provide custom resource bundles as there is only one (JCR) ResourceBundleProvider. It would be good to allow multiple and go through them until the first one returns a non-null value, asking the ones with a higher service ranking first. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2576) I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale
[ https://issues.apache.org/jira/browse/SLING-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13443095#comment-13443095 ] Carsten Ziegeler commented on SLING-2576: - Reverted the order and use a local variable for the array to ensure that the same array is used throughout the loop I18n: Allow multiple ResourceBundleProviders, use the first one responding for a given locale - Key: SLING-2576 URL: https://issues.apache.org/jira/browse/SLING-2576 Project: Sling Issue Type: Improvement Components: Extensions Affects Versions: i18n 2.2.2 Reporter: Alexander Klimetschek Assignee: Carsten Ziegeler Attachments: SLING-2576.patch As discussed on the list: http://markmail.org/message/7dsrqaxw6dkkshwx it is currently not possible to provide custom resource bundles as there is only one (JCR) ResourceBundleProvider. It would be good to allow multiple and go through them until the first one returns a non-null value, asking the ones with a higher service ranking first. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira