Ticket #2281 (closed task: fixed)

Opened 20 months ago

Last modified 18 months ago

get localization code out of the bootstraps

Reported by: alex Owned by: peller
Priority: high Milestone: 0.9
Component: Core Version: 0.4.1
Severity: normal Keywords:
Cc: jburke@…, alex@…

Description

the localization loading code is large, and if you need it, you know you need it. It needs to not be sent in every profile and every build.

Change History

Changed 20 months ago by jburke

Something I mentioned on an email thread:

So maybe something like this:

dojo.requireLocalization = function(/*args*/){

dojorequire?("dojo.i18n.require"); //defines the real requireLocalization dojo.requireLocalization(/*args*/);

}

For xdomain builds though, they would likely need the real dojo.requireLocalization already in dojo.js (because of the async loading). Maybe it would work out. Might have to do some custom work in loader_xd.js.

We might have to do some extra work in the build process to figure out when we need the "real" requireLocalization definition for the cases in which the build includes a widget that is localized.

Changed 20 months ago by dylan

  • milestone set to 0.9

Changed 18 months ago by peller

(In [7291]) References #2281. Sorry, forgot to note this on the checkin last week. Checked into dojo-lite

Changed 18 months ago by peller

  • status changed from new to closed
  • resolution set to fixed

(In [7458]) Fixes #2281

Note: See TracTickets for help on using tickets.