Author: buildbot
Date: Fri Dec 20 08:18:24 2013
New Revision: 891161
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/internationalization-support-i18n.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Dec 20 08:18:24 2013
@@ -1 +1 @@
-1551364
+1552527
Modified:
websites/staging/sling/trunk/content/documentation/bundles/internationalization-support-i18n.html
==============================================================================
---
websites/staging/sling/trunk/content/documentation/bundles/internationalization-support-i18n.html
(original)
+++
websites/staging/sling/trunk/content/documentation/bundles/internationalization-support-i18n.html
Fri Dec 20 08:18:24 2013
@@ -83,11 +83,6 @@
</div>
- <div class="tip">
- This page is a translated version of <a
href="/site/internationalization-support-i18n.html"
target="sling_cwiki">/site/internationalization-support-i18n.html</a>. In case
of
- doubt you might want to refer to the old page.
- </div>
-
<h1>Internationalization Support (i18n)</h1>
<p>Internationalization support in Sling consists of four methods in the
<code>SlingHttpServletRequest</code> interface:</p>
@@ -188,27 +183,25 @@
<p>This content defines two languages <em>en</em> and <em>de</em> with three
messages <em>msg001</em>, <em>msg002</em> and <em>msgXXX</em> each. The names
of the respective nodes have no significance at all because all information
required is extracted from the <code>jcr:language</code>,
<code>sling:key</code> and <code>sling:message</code> properties.</p>
<h3
id="jcr-node-types-supporting-the-jcr-repository-based-resourcebundleprovider">JCR
Node Types supporting the JCR Repository based
<code>ResourceBundleProvider</code></h3>
<p>The sling.i18n bundle asserts the following node types:</p>
-<DIV class="code panel" style="border-style: solid;border-width: 1px;"><DIV
class="codeHeader panelHeader" style="border-bottom-width:
1px;border-bottom-style: solid;"><B>mix:language</B></DIV><DIV
class="codeContent panelContent">
- [mix:language]
- mixin
- - jcr:language (string)
-
-The `mix:language` mixin node type allows setting the `jcr:language` property
required by the `ResourceBundleProvider` implementation to identify the message
`Locale`.
-
+<div class="codehilite"><pre><span class="k">[mix:language]</span>
+ <span class="err">mixin</span>
+ <span class="err">-</span> <span class="err">jcr:language</span> <span
class="err">(string)</span>
+</pre></div>
-<DIV class="code panel" style="border-style: solid;border-width: 1px;"><DIV
class="codeHeader panelHeader" style="border-bottom-width:
1px;border-bottom-style: solid;"><B>sling:message and
sling:messageEntry</B></DIV><DIV class="codeContent panelContent">
- [sling:message]
- mixin
- - sling:key (string)
- - sling:message (undefined)
+<p>The <code>mix:language</code> mixin node type allows setting the
<code>jcr:language</code> property required by the
<code>ResourceBundleProvider</code> implementation to identify the message
<code>Locale</code>.</p>
+<div class="codehilite"><pre><span class="k">[sling:message]</span>
+ <span class="err">mixin</span>
+ <span class="err">-</span> <span class="err">sling:key</span> <span
class="err">(string)</span>
+ <span class="err">-</span> <span class="err">sling:message</span> <span
class="err">(undefined)</span>
- [sling:messageEntry] > nt:hierarchyNode, sling:message
+<span class="err">[sling:messageEntry]</span> <span class="err">></span>
<span class="err">nt:hierarchyNode,</span> <span
class="err">sling:message</span>
+</pre></div>
-The `sling:message` and `slign:messageEntry` are helper node types which may
be used to create the nodes with the `sling:key` and `sling:message` properties
required by the `ResourceBundleProvider`. The node types themselves are not
required but by defining the required properties, they may be of use.
+<p>The <code>sling:message</code> and <code>slign:messageEntry</code> are
helper node types which may be used to create the nodes with the
<code>sling:key</code> and <code>sling:message</code> properties required by
the <code>ResourceBundleProvider</code>. The node types themselves are not
required but by defining the required properties, they may be of use.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1499238 by fmeschbe on Wed, 3 Jul 2013 07:39:54 +0000
+ Rev. 1552527 by fmeschbe on Fri, 20 Dec 2013 08:18:11 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache
Sling project