Including Text Within a Template or Form

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

Cart Template Example

This is an example of calling 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 is the corresponding entry in checkout.properties:

minicart.viewcart

Form Example

This is an example of 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="Master" 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