Ticket #2528784 (closed defect)

Reporter


Satyen Desai
Opened: 04/14/10
Last modified: 05/5/10
Status: closed
Type: defect
Resolution: fixed

Owner


Adam Moore
Target Release: 3.1.1
Priority: P3 (normal)
Summary: Regression requesting language packs using Y.use("lang/datatype-date_xx", fn) in build yui3-2029
Description:

Filing this for tracking as discussed in the 3.1.1 review meeting. As mentioned, it is not a 3.1.0 bug. It occurs in development master.

The lang pack loading support seems to have changed, going from build yui3-2028 to yui3-2029 (yui3-2028 works, yui3-2029 doesn't)

The last section of the datatype_dateformat_lang.html example no longer pulls down new language packs

-- From the related email thread --

On April 9, 2010 2:12:14 PM PDT, Satyen Desai wrote:

Stepping through things, it seems like loader calculations are fine.

It's just failing to get to the Y.Get.script part, to lay the script tag down, because of the following check in loadNext()...

m = this.getModule(s[i]);

if (!m) {
msg = "Undefined module " + s[i] + " skipped";
Y.log(msg, 'warn', 'loader');
this.inserted[s[i]] = true;
this.skipped[s[i]] = true;
continue;
}

s[i] is "lang/datatype-date_zh-Hant-TW" for example, but m ends up being undefined.

There's an entry for "lang/datatype-date-format_zh-Hant-TW" but not for "lang/datatype-date_zh-Hant-TW".

---

Type: defect Observed in Version: development master
Component: Loader Severity: S3 (normal)
Assigned To: Adam Moore Target Release: 3.1.1
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Adam Moore

YUI Contributor

Posted: 04/22/10
  • resolution changed to fixed
  • status changed from new to checkedin

fixed dynamically pulling in new language packs [fixes #2528784].
View Commit:

Adam Moore

YUI Contributor

Posted: 04/26/10

fixed dynamically pulling in new language packs [fixes #2528784].
View Commit:

Satyen Desai

YUI Developer

Posted: 04/27/10

Verified fixed in dateformat language pack example in yui3-3.1.1-23

George

YUI Developer

Posted: 05/5/10
  • status changed from checkedin to closed