You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Tobias Bocanegra <tr...@apache.org> on 2013/12/17 22:48:29 UTC
[i18n] jcr resource bundle provider
Hi,
I was looking at SLING-2881 [0] and reading the docu at [1]. the i18n
code has 1 queries, one is:
1) //element(*,mix:language)
and the other is
2) //element(*,mix:language)[@jcr:language='en']//element(*,sling:Message)[@sling:message]/(@sling:key|@sling:message)
the first one is to find all language bundle roots, and the 2nd is
used to actually load all messages for 1 bundle. I suggest to replace
the second one by a manual traversal, since all messages are usually
just directly below the language nodes.
WDYT?
Regards, Toby
[0] https://issues.apache.org/jira/browse/SLING-2881
[1] http://sling.apache.org/site/internationalization-support.html