Changeset 7426

Show
Ignore:
Timestamp:
02/23/07 17:33:24 (23 months ago)
Author:
jburke
Message:

Fixes #2211. Now web built, xdomain builds that do not have the top-level nls directory but include modules that use i18n bundles will work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/buildscripts/makeDojoJsWeb.js

    r7414 r7426  
    4747         
    4848        var contents = buildUtil.makeDojoJs(dependencyResult, version).dojoContents; 
     49        var prefixes = [["dojo", "src"]]; 
     50 
     51        //Make sure any dojo.requireLocalization calls are modified 
     52        //so that they inform the loader of valid locales that can be loaded. 
     53        contents = buildUtil.modifyRequireLocalization(contents, djConfig.baseRelativePath, prefixes); 
     54         
     55        //Convert requireLocalization calls into xdRequireLocalization calls. 
     56        contents = contents.replace(/dojo\.requireLocalization\s*\(/g, "dojo.xdRequireLocalization("); 
    4957         
    5058        //Add copyright, and intern strings. 
    51         contents = new String(buildUtil.readFile("copyright.txt")) + buildUtil.interningRegexpMagic("xdomain", contents, djConfig.baseRelativePath, [["dojo", "src"]], [], true); 
     59        contents = new String(buildUtil.readFile("copyright.txt")) + buildUtil.interningRegexpMagic("xdomain", contents, djConfig.baseRelativePath, prefixes, [], true); 
    5260         
    5361        if(xdDojoUrl){