[wpkg-users] [Bug 206] lcid attribute for package variables not recognized

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Mon Jul 4 00:20:52 CEST 2011


http://bugzilla.wpkg.org/show_bug.cgi?id=206

--- Comment #5 from Stefan Pendl <pendl2megabit at yahoo.de>  ---
The following seems to fix it the crash:

    for (var i=0; i < variableNodes.length; i++) {
        // var variableLCID =
trimLeadingZeroes(trim(variableNodes[i].getAttribute("lcid")));
        var variableLCID = variableNodes[i].getAttribute("lcid"); // <<---
        dinfo("LCID: " + variableLCID);
        if (variableLCID != null && variableLCID != getLocale()) {
            // Variable is set only for specific LCID which does not match the
current system.
            // Skip to next variable
            continue;
        }

In addition this seems to not handle multiple LCIDs like specified by the
message strings in the config.xml file.

One needs to specify multiple German LCIDs for instance.

---
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list