Labels

From JRapid

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
==Description==
==Description==
 +
The '''labels''' element is used for changing the text in labels and buttons.
 +
 +
==Usage==
 +
 +
<config>
 +
    <labels>
 +
            <label key="form.ok" value="TEXT"/>
 +
            <label key="form.cancel" value="TEXT"/>
 +
            <label key="audit.history" value="TEXT"/>
 +
            <label key="selectmultiple.choose" value="TEXT"/>
 +
            <label key="selectmultiple.add" value="TEXT"/>
 +
            <label key="multiline.head.more" value="TEXT"/>
 +
            <label key="multiline.body.more" value="TEXT"/>
 +
            <label key="listing.add" value="TEXT"/>
 +
            <label key="listing.remove" value="TEXT"/>
 +
            <label key="listing.noResults" value="TEXT"/>
 +
            <label key="listing.showing" value="TEXT"/>
 +
            <label key="listing.showing.to" value="TEXT"/>
 +
            <label key="listing.showing.of" value="TEXT"/>
 +
    </labels>
 +
</config>
 +
 +
 +
==Example==
 +
Change buttons and labels to spanish.
 +
 +
<pre class="brush:xml">
 +
  <config>
 +
        <labels>
 +
            <label key="form.ok" value="Aceptar"/>
 +
            <label key="form.cancel" value="Cancelar"/>
 +
            <label key="audit.history" value="Auditoría/Histórico"/>
 +
            <label key="selectmultiple.choose" value="Elegir"/>
 +
            <label key="selectmultiple.add" value="Agregar"/>
 +
            <label key="multiline.head.more" value="Más"/>
 +
            <label key="multiline.body.more" value="Ver Más..."/>
 +
            <label key="listing.add" value="Agregar"/>
 +
            <label key="listing.remove" value="Eliminar"/>
 +
            <label key="listing.noResults" value="No hay resultados para mostrar"/>
 +
            <label key="listing.showing" value="Mostrando de"/>
 +
            <label key="listing.showing.to" value="a"/>
 +
            <label key="listing.showing.of" value="sobre un total de"/>
 +
        </labels>
 +
        ...
 +
  </config>
 +
</pre>
==See also==
==See also==

Revision as of 17:39, 6 September 2011

labels is an element child of config

Contents

Description

The labels element is used for changing the text in labels and buttons.

Usage

<config>
   <labels>
           <label key="form.ok" value="TEXT"/>
           <label key="form.cancel" value="TEXT"/>
           <label key="audit.history" value="TEXT"/>
           <label key="selectmultiple.choose" value="TEXT"/>
           <label key="selectmultiple.add" value="TEXT"/>
           <label key="multiline.head.more" value="TEXT"/>
           <label key="multiline.body.more" value="TEXT"/>
           <label key="listing.add" value="TEXT"/>
           <label key="listing.remove" value="TEXT"/>
           <label key="listing.noResults" value="TEXT"/>
           <label key="listing.showing" value="TEXT"/>
           <label key="listing.showing.to" value="TEXT"/>
           <label key="listing.showing.of" value="TEXT"/>
   </labels>
</config>


Example

Change buttons and labels to spanish.

   <config>
        <labels>
            <label key="form.ok" value="Aceptar"/>
            <label key="form.cancel" value="Cancelar"/>
            <label key="audit.history" value="Auditoría/Histórico"/>
            <label key="selectmultiple.choose" value="Elegir"/>
            <label key="selectmultiple.add" value="Agregar"/>
            <label key="multiline.head.more" value="Más"/>
            <label key="multiline.body.more" value="Ver Más..."/>
            <label key="listing.add" value="Agregar"/>
            <label key="listing.remove" value="Eliminar"/>
            <label key="listing.noResults" value="No hay resultados para mostrar"/>
            <label key="listing.showing" value="Mostrando de"/>
            <label key="listing.showing.to" value="a"/>
            <label key="listing.showing.of" value="sobre un total de"/>
        </labels>
        ...
   </config>

See also

Personal tools