context: function convertLanguageCode(abbr){    var result;    var tokens = abbr.split("-");    if (tokens[0] === "x" || tokens[0] === "i")    {        // x and i prefixes mean unofficial ones. So we upper-case the first        // word and leave the rest.        tokens.shift();        if (tokens[0])        {            // Upper-case first letter            result = tokens[0].substr(0, 1).toUpperCase() + tokens[0].substr(1);            tokens.shift();            if (tokens[0])            {                // Add on the rest as space-separated strings inside the brackets                result += " (" + tokens.join(" ") + ")";            }        }    }    else    {        // Otherwise we treat the first as a lang, the second as a region        // and the rest as strings.        try        {            result = gLangBundle.getString(tokens[0]);        }        catch (e)         {            // Language not present in lang bundle            result = tokens[0];         }        tokens.shift();        if (tokens[0])        {            try            {                // We don't add it on to the result immediately                // because we want to get the spacing right.                tokens[0] = gRegionBundle.getString(tokens[0].toLowerCase());            }            catch (e)             {                // Region not present in region bundle            }            result += " (" + tokens.join(" ") + ")";        }    }    return result;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8333188a5e3c652ab18b36c19481c67192428453/metadata.js/buggy/xpfe/browser/resources/content/metadata.js