Changes between Version 2 and Version 3 of Documentation/DevelopingForXinha/Internationalisation


Ignore:
Timestamp:
03/16/18 00:46:58 (5 weeks ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/DevelopingForXinha/Internationalisation

    v2 v3  
    1313== the _lc-function == 
    1414{{{ 
    15 #!text/x-javascript 
     15 
    1616Xinha._lc('english string'); 
    1717}}} 
     
    1919---- 
    2020{{{ 
    21 #!text/x-javascript 
     21 
    2222Xinha._lc('english string', 'PluginName'); 
    2323}}} 
    2424Usage within an plugin. Most plugins do have its own _lc function defined, you don't need to pass the context everytime then. 
    2525{{{ 
    26 #!text/x-javascript 
     26 
    2727CharCounter.prototype._lc = function(string) { 
    2828    return Xinha._lc(string, "CharCounter"); 
     
    3131---- 
    3232{{{ 
    33 #!text/x-javascript 
     33 
    3434var complexity = 'very'; 
    3535Xinha._lc({string: 'this is a $complexity complex sentence', replace:{'complexity': complexity}}); 
     
    3838---- 
    3939{{{ 
    40 #!text/x-javascript 
     40 
    4141Xinha._lc({key: 'button_bold', string: ["ed_buttons_main.gif",3,2]}); 
    4242}}}