Changeset 1403


Ignore:
Timestamp:
02/19/18 07:49:36 (7 months ago)
Author:
gogo
Message:

By default, load a merged language file if it exists for the given language in lang/merged/*.js

Merged files are created using the contrib/lc_create_merged_file.php script and combine all the language files into one, mainly for easier translation work, but also can be used handily for this reduction in browse requests.

Merged files should be included in the distribution by default.

Note that when a merged file is in use, any other existing language file for a context included in the merged file, is not consulted. Hence the recommendation in the comments of each language file that people normally should not edit that (it would be recreated from lc_split_merged_file.php when the submit their merged file back for inclusion in the distribution).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1402 r1403  
    82328232    } 
    82338233 
     8234    // By default we will try and load a merged language file so that the user 
     8235    //  is not loading quite so many javascript files just for language data 
     8236    if ( typeof _editor_lang_merged_file == 'undefined' || _editor_lang_merged_file === true ) 
     8237    { 
     8238      _editor_lang_merged_file = _editor_url + 'lang/merged/' + _editor_lang+'.js'; 
     8239    } 
     8240     
    82348241    // Allow to provide an explicitly merged translation file for testing translations  
    82358242    // (and for easy using a merged translation set)     
Note: See TracChangeset for help on using the changeset viewer.