This is an automated email from the ASF dual-hosted git repository.
royteeuwen 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 0f57ee3a4 Update internationalization-support-i18n.md
0f57ee3a4 is described below
commit 0f57ee3a484c96af27b12175dbdfba6c5e085b03
Author: Roy Teeuwen <[email protected]>
AuthorDate: Thu Jan 23 20:04:30 2025 +0100
Update internationalization-support-i18n.md
---
.../documentation/bundles/internationalization-support-i18n.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
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 c56d71e6d..24ed9c827 100644
---
a/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
+++
b/src/main/jbake/content/documentation/bundles/internationalization-support-i18n.md
@@ -47,9 +47,9 @@ The exact location of these nodes is not relevant as the
`ResourceBundleProvider
Two different types of storage formats are supported for the individual
dictionaries
-#### `sling:MessageEntry` based
+#### `sling:MessageEntry` or `sling:message` based
-The (direct) child nodes of the `mix:language` node must have the
`jcr:primaryType` set to `sling:MessageEntry` and must contain two special
properties naming the key string and the message:
+The (direct) child nodes of the `mix:language` node must either have the
`jcr:primaryType` set to `sling:MessageEntry` or a `jcr:mixinTypes` containing
`sling:Message` and must contain two special properties naming the key string
and the message:
* `sling:key` -- The `sling:key` property is a string property being the
key for which the node contains the message(s). This property is optional. If
it is not set the key is determined by the name of this `sling:messageEntry`
resource.
* `sling:message` -- The `sling:message` property represents the string for
the key.
@@ -66,7 +66,8 @@ Content for dictionaries in this format might look like this:
| +-- m1 (sling:MessageEntry)
| | +-- sling:key = "msg001"
| | +-- sling:message = "This is a message"
- | +-- m2 (sling:MessageEntry)
+ | +-- m2 (nt:folder)
+ | +-- jcr:mixinTypes = ["sling:Message"]
| +-- sling:key = "msg002"
| +-- sling:message = "Another message"
+-- Deutsch (nt:folder, mix:language)