Changes

Jump to navigation Jump to search
No change in size ,  01:35, 20 December 2013
Line 26: Line 26:  
There are three ways to do this:
 
There are three ways to do this:
   −
# Substitute another lexicon entry by it’s base name. This substitution will happen automagically:
+
* 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:
+
* 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:
+
* 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:
    
           <lexicon lang="fr">
 
           <lexicon lang="fr">

Navigation menu