Login Register

Custom build Localization exception

we are making a custom build with our own custom widgets and getting the error below:

"Could not load 'dojo.nls.Mariner_Combined_en-us'; last tried './nls/Mariner_Combined_en-us.js'"

Am i missing something, like providing it with the locale string file? if so, how can i provide it to the build process? below is what our profile file looks like.

name: "Mariner_Combined.js",
dependencies: [
"foo.product.mariner.framework.PESFrameworkController",
"serena.event.Event",
"dijit.layout.SplitContainer",
"dijit.layout.ContentPane",
"dijit.Menu",
"foo.widget.MiniNavBar",
"foo.widget.ActionPanel",
"foo.widget.DeepTree",
"foo.product.mariner.framework.NotificationAlert",
"foo.product.mariner.module.portfoliomanager.PESDefaultTreeManager",
"foo.product.mariner.module.portfoliomanager.PMDefaultTaskHandler",
"foo.product.mariner.module.portfolioanalyzer.PADefaultTreeManager",
"foo.product.mariner.module.portfolioanalyzer.PADefaultTaskHandler",
"foo.product.mariner.module.resourcemanager.RMDefaultTaskHandler"
]
}
],
prefixes: [
[ "dijit", "../dijit" ],
[ "dojox", "../dojox" ],
[ "foo", "../../foo" ]

below is what the build generated file Mariner_Combined_en-us.js :

dojo.provide("dojo.nls.Mariner_Combined_en-us");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.en_us");dijit.nls.loading.en_us={"loadingState": "Loading...", "errorState": "Sorry, an error occurred"};

thank you in advance!

The error you mention --

The error you mention -- this is an error you see when running the application after the build, or an error while the build is trying to complete?

If it is an error while the application is running, then perhaps use Firebug's Net tab to track the down where it is expecting the file -- it looks like the file was generated. After you do the build, be sure to keep the Mariner_Combined.js file in the dojo directory. Also Mariner_Combined.js should be loaded after dojo.js, and it should be loaded by using a script tag.