To include your language text within a template or form, reference the corresponding line from the correct file.
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
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