incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r644965 - in /incubator/sling/trunk/sling/i18n: ./ src/main/resources/SLING-INF/nodetypes/
Date Fri, 04 Apr 2008 22:30:07 GMT
Author: fmeschbe
Date: Fri Apr  4 15:29:59 2008
New Revision: 644965

URL: http://svn.apache.org/viewvc?rev=644965&view=rev
Log:
SLING-363 add new sling:Language mixin node type extending mix:language
as described in the issue

Added:
    incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/jcrlanguage.cnd
      - copied unchanged from r643315, incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/language.cnd
    incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/slinglanguage.cnd
Removed:
    incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/language.cnd
Modified:
    incubator/sling/trunk/sling/i18n/pom.xml
    incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/message.cnd

Modified: incubator/sling/trunk/sling/i18n/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/i18n/pom.xml?rev=644965&r1=644964&r2=644965&view=diff
==============================================================================
--- incubator/sling/trunk/sling/i18n/pom.xml (original)
+++ incubator/sling/trunk/sling/i18n/pom.xml Fri Apr  4 15:29:59 2008
@@ -66,11 +66,12 @@
                             org.apache.sling.i18n
                         </Export-Package>
                         <Private-Package>
-                            org.apache.sling.i18n.impl
+                            org.apache.sling.i18n.impl.*
                         </Private-Package>
 
                         <Sling-Nodetypes>
-                            SLING-INF/nodetypes/language.cnd,
+                            SLING-INF/nodetypes/jcrlanguage.cnd,
+                            SLING-INF/nodetypes/slinglanguage.cnd,
                             SLING-INF/nodetypes/message.cnd
                         </Sling-Nodetypes>
 

Modified: incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/message.cnd
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/message.cnd?rev=644965&r1=644964&r2=644965&view=diff
==============================================================================
--- incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/message.cnd (original)
+++ incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/message.cnd Fri
Apr  4 15:29:59 2008
@@ -22,9 +22,9 @@
 // Mixin node type for a single key to message mapping
 // This mixin node type may be applied to any node such, that mappings
 // may be located just inside some existing node hierarchy
-[sling:message]
+[sling:Message]
     mixin
   - sling:key (string)
   - sling:message (undefined)
 
-[sling:messageEntry] > nt:hierarchyNode, sling:message  
\ No newline at end of file
+[sling:MessageEntry] > nt:hierarchyNode, sling:Message  
\ No newline at end of file

Added: incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/slinglanguage.cnd
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/slinglanguage.cnd?rev=644965&view=auto
==============================================================================
--- incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/slinglanguage.cnd
(added)
+++ incubator/sling/trunk/sling/i18n/src/main/resources/SLING-INF/nodetypes/slinglanguage.cnd
Fri Apr  4 15:29:59 2008
@@ -0,0 +1,29 @@
+//
+//  Licensed to the Apache Software Foundation (ASF) under one
+//  or more contributor license agreements.  See the NOTICE file
+//  distributed with this work for additional information
+//  regarding copyright ownership.  The ASF licenses this file
+//  to you under the Apache License, Version 2.0 (the
+//  "License"); you may not use this file except in compliance
+//  with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing,
+//  software distributed under the License is distributed on an
+//  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//  KIND, either express or implied.  See the License for the
+//  specific language governing permissions and limitations
+//  under the License.
+//
+
+<mix = 'http://www.jcp.org/jcr/mix/1.0'>
+<sling = 'http://sling.apache.org/jcr/sling/1.0'>
+
+// The sling:language mixin node type allows to list one or more base
+// names of resource bundles to which the messages below this language
+// node belong.
+[sling:Language] > mix:language
+    mixin
+  - sling:basename (string)
+  - sling:basename (string) multiple
\ No newline at end of file



Mime
View raw message