label

The interface-hints element you will probably make most use of is label. By default, CUE generates labels for user interface components from the name attribute of the resource file elements they are based on, by simply capitalizing the first letter of the name. A field element called title in the content-type resource, for example, will result in the field label Title in CUE. If, however, you want the field to be called Headline in CUE, then you can achieve this by adding a ui:label element as follows:

<field type="basic" name="title">
  <ui:label>Headline</ui:label>
</field>

The other important function of the label element is to enable multilingual user interfaces. An element can have several child label elements, each with a different xml:lang attribute identifying its language. For example:

<field type="basic" name="title">
  <ui:label xml:lang="fr">Titre</ui:label>
  <ui:label xml:lang="de">Titel</ui:label>
</field>