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.

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="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
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.