This is an automated email from the ASF dual-hosted git repository.

enorman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 38d2406  Released Apache Sling I18N Support 2.5.16
38d2406 is described below

commit 38d2406ddbe20eb6c5bb72df2d5c8dd5d2f24e12
Author: Eric Norman <[email protected]>
AuthorDate: Thu Mar 11 15:24:49 2021 -0800

    Released Apache Sling I18N Support 2.5.16
---
 .../bundles/internationalization-support-i18n.md            | 13 +++++++++++++
 src/main/jbake/content/releases.md                          |  1 +
 src/main/jbake/templates/downloads.tpl                      |  2 +-
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git 
a/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
 
b/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
index 9cd66d4..f502281 100644
--- 
a/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
+++ 
b/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
@@ -176,3 +176,16 @@ So for the locale `de-DE-MAC` the fallback order would be
 
 In case there is a resource bundle requested for a locale without country or 
variant, there is only 1 fallback (i.e. the default locale).
 The last resort (root resource bundle in all hierarchies) is always the bundle 
which returns the requested key as the value.
+
+#### Locate non JCR based ResourceBundle resources
+
+Since version 2.5.16 the i18n bundle supports locating ResourceBundle 
resources that exist outside of the JCR repository.  A new osgi.extender 
technique can be utilized so that a bundle can declare certain paths that 
should be traversed to locate ResourceBundle resources.
+
+For example, the bundle providing the ResourceBundle resources can define 
something like this:
+
+    Require-Capability: 
osgi.extender;filter:="(&(osgi.extender=org.apache.sling.i18n.resourcebundle.locator.registrar)(version<=1.0.0)(!(version>=2.0.0)))"
+    
+    Provide-Capability: 
org.apache.sling.i18n.resourcebundle.locator;paths="/libs/i18n/path123";depth=1
+
+The "Provide-Capability" instruction defines which (csv) resource paths to 
traverse via the "paths" clause and how deep to drill down via the optional 
"depth" clause (depth=1 by default) looking for candidates.
+
diff --git a/src/main/jbake/content/releases.md 
b/src/main/jbake/content/releases.md
index 2042394..ed0555c 100644
--- a/src/main/jbake/content/releases.md
+++ b/src/main/jbake/content/releases.md
@@ -8,6 +8,7 @@ This is a list of all our releases, available from our 
[downloads](/downloads.cg
 
 ## March 2021
 
+* i18n 2.5.16 (11th)
 * XSS Protection API 2.2.12, Parent 41, Bundle Parent 41 (1st)
 
 ## February 2021
diff --git a/src/main/jbake/templates/downloads.tpl 
b/src/main/jbake/templates/downloads.tpl
index 3685e36..2080cba 100644
--- a/src/main/jbake/templates/downloads.tpl
+++ b/src/main/jbake/templates/downloads.tpl
@@ -135,7 +135,7 @@ def bundles=[
   "File 
Optimization|org.apache.sling.fileoptim|0.9.2|org.apache.sling.file.optimization|jar",
   "File System Resource Provider|org.apache.sling.fsresource|2.1.16|Y|jar",
   "GraphQL Core|org.apache.sling.graphql.core|0.0.8|Y|jar",
-  "I18n|org.apache.sling.i18n|2.5.14|Y|jar",
+  "I18n|org.apache.sling.i18n|2.5.16|Y|jar",
   "HApi|org.apache.sling.hapi|1.1.0|Y|jar",
   "Health Check API|org.apache.sling.hc.api|1.0.4|Y|jar",
   "Health Check Support|org.apache.sling.hc.support|1.0.6|Y|jar",

Reply via email to