Bundle entry

A bundle entry represents a single internationalizable item. It includes a description of the item and the possible translated values as well as a reference to the bundle, the entry belongs to.

Schema

nodes:requirement inherits from nodes:versionable. Inheriting nodes:versionable will create a new version each time the node is saved.

A node may have properties

  • nodes:bundle which holds a reference to the container bundle.
  • nodes:description.A simple non-HTML description of the entry.
  • nodes:key. The key of the bundle entry.
  • nodes:default. The default translation.
  • nodes:en. The english translation.
  • nodes:de. The german translation. Other languages can be added as needed, provided the property is not specified as mandator.

As custom_nodestypes.xml:

<nodeType
   hasOrderableChildNodes="false"
   isMixin="false"
   name="nodes:bundleEntry"
   primaryItemName="">
  <supertypes>
   <supertype>nt:base</supertype>
   <supertype>nodes:versionable</supertype>
  </supertypes>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:key"
    onParentVersion="VERSION"
    protected="false"
    requiredType="String"/>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:de"
    onParentVersion="VERSION"
    protected="false"
    requiredType="String"/>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:bundle"
    onParentVersion="VERSION"
    protected="false"
    requiredType="Reference">
   <valueConstraints>
    <valueConstraint>nodes:bundle</valueConstraint>
   </valueConstraints>
  </propertyDefinition>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:description"
    onParentVersion="VERSION"
    protected="false"
    requiredType="String"/>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:en"
    onParentVersion="VERSION"
    protected="false"
    requiredType="String"/>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="false"
    name="nodes:default"
    onParentVersion="VERSION"
    protected="false"
    requiredType="undefined"/>
 </nodeType>

Template

The template looks like