Including Text Within a Template or Form

To include your language text within a template or form, reference the corresponding line from the correct file.

Note: Content Warning: The content on this page necessarily engages with noninclusive language that can be emotionally and intellectually challenging.

Cart Template Example

The following example calls resource usage in a template:

// Reference to resource minicart.viewcart in resource file
<a href="${URLUtils.https('Cart-Show')}"
 title="${Resource.msg('minicart.viewcart','checkout',null)}"
 class="mini-cart-link">
// ${ Resource.msg('minicart.viewcart','checkout',null) } will grab the text = View your cart

This entry is the corresponding entry in checkout.properties:

minicart.viewcart

Form Example

This example shows resource usage in a form:

//Reference to resource forms.properties resource file
<options>
<option optionid="Visa" value="creditcard.visa" label="creditcard.visa"/>
<option optionid="American Express" value="creditcard.amex" label="creditcard.amex"/>
<option optionid="Main" value="creditcard.mastercard" label="creditcard.mastercard"/>
<option optionid="Discover" value="creditcard.discover" label="creditcard.discover"/>

</options>This is the corresponding section in forms.properties:

creditcard.visa=Visa
creditcard.mastercard=Mastercard
creditcard.amex=Amex
creditcard.discover=Discover