Ticket #2532268 (closed defect)
Reporter Francesco Pongiluppi |
Opened: 05/4/12 Last modified: 08/1/12 Status: closed Type: defect Resolution: fixed |
Owner Dav Glass |
Target Release: 3.6.0 Priority: P1 (critical) |
|---|---|---|---|
| Summary: | Intl.get doesn't load language modules for non-yui modules defined in a group with configFn | ||
| Description: | While upgrading from 3.4.1 to 3.5.0, this configuration stopped working. YUI({lang: 'it'}).use("mygroup-util-1.4", function(Y) { Y.log(Y.mygroup.test()); })
|
||
| Type: | defect | Observed in Version: | 3.5.0 |
| Component: | Loader | Severity: | S2 (high) |
| Assigned To: | Dav Glass | Target Release: | 3.6.0 |
| Location: | Library Code | Priority: | P1 (critical) |
| Tags: | intl,loader,configFn | Relates To: | #2531451 |
| Browsers: | All | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 05/7/12
|
|
Posted: 05/8/12
Thank you so much for this: I tried as you suggest in our test case, and of course it works. We're going to try it in the complete setup to see if we can hack this out waiting for your commit on the main branch. Thank you again. |
|
Posted: 05/11/12
|
|
Posted: 06/5/12
Ticket #2529982 was marked as a duplicate of this ticket. |
|
Posted: 06/5/12
|
|
Posted: 06/5/12
Refs #2532268 - Changed from merge to mix for the global module cache |
|
Posted: 08/1/12
Shipped in 3.6.0. Marking closed/fixed. |
Jenny Donnelly
I worked on this all weekend and I still didn't come up with a patch so I didn't make the 3.6.0PR1 code freeze.
I was able to get the example to work, it's a hack for now but it does work.
If you set `me.lang = ['en', 'it']` in your `configFn` the modules work as expected since the lang is set before the module is fetched and not after it's fetched.
The root issue is that the lang is not there on the initial parse of the module (via the pattern) but it's there when the module is fetched. However, the old module cache still contains the old module so the lang is not attached to the module telling YUI to load the intl module. I'm still working on it, but if this hack can get you up and running I figured I would let you know so you aren't spinning your wheels waiting on my patch.