* Substitute another lexicon entry by it’s base name. This substitution will happen automagically:
+
1. Substitute another lexicon entry by it’s base name. This substitution will happen automagically:
<lexicon lang="fr">
<lexicon lang="fr">
Line 39:
Line 39:
</lexicon>
</lexicon>
−
* Use a custom method in your FormMagick subclass that returns a hash of variables for substitution. This substitution will happen automagically if you use the ’params’ attribute of the lexicon XML element, and define the named method in your FormMagick subclass:
+
2. Use a custom method in your FormMagick subclass that returns a hash of variables for substitution. This substitution will happen automagically if you use the ’params’ attribute of the lexicon XML element, and define the named method in your FormMagick subclass:
<lexicon lang="fr" params="getLexiconParams()">
<lexicon lang="fr" params="getLexiconParams()">
Line 56:
Line 56:
1;
1;
−
* Pass a hashref to the localise() method. This substitution will happen automagically if you pass the hashref as an additional parameter to the localise() method:
+
3. Pass a hashref to the localise() method. This substitution will happen automagically if you pass the hashref as an additional parameter to the localise() method: